conf_parse_cmdline(): Use strict string comparison

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2017-12-30 21:20:06 +01:00
parent 55cb50ef90
commit 5b3df3654c
+2 -2
View File
@@ -76,10 +76,10 @@ void conf_parse_cmdline(void)
cmdline = NULL;
/* Catches finit_debug (deprecated), --debug, and debug */
if (strstr(tok, "debug"))
if (string_compare(tok, "debug"))
dbg = 1;
if (strstr(tok, "rescue") || strstr(tok, "recover"))
if (string_compare(tok, "rescue") || string_compare(tok, "recover"))
rescue = 1;
}
fclose(fp);