From e83890e6be5dd79760e6c5e052a9ba38d42a80af Mon Sep 17 00:00:00 2001 From: david Date: Mon, 19 Dec 2011 05:16:23 +0000 Subject: [PATCH] Fix an error check. --- nmap-update/nmap-update.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmap-update/nmap-update.c b/nmap-update/nmap-update.c index 804dc4bde..91617ef55 100644 --- a/nmap-update/nmap-update.c +++ b/nmap-update/nmap-update.c @@ -502,7 +502,7 @@ static void init_options(void) exit(1); } options.conf_filename = get_conf_filename(); - if (options.staging_dir == NULL) { + if (options.conf_filename == NULL) { fprintf(stderr, "Could not find the configuration file: %s.\n", strerror(errno)); exit(1);