mirror of
https://github.com/troglobit/finit.git
synced 2026-10-07 16:14:21 +07:00
conf_parse_cmdline(): Use strict string comparison
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user