mirror of
https://github.com/troglobit/finit.git
synced 2026-11-08 16:11:10 +00:00
conf_parse_cmdline(): Use strict string comparison
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
55cb50ef90
commit
5b3df3654c
1 file changed
+2
-2
+2
-2
@@ -76,10 +76,10 @@ void conf_parse_cmdline(void)
|
|||||||
cmdline = NULL;
|
cmdline = NULL;
|
||||||
|
|
||||||
/* Catches finit_debug (deprecated), --debug, and debug */
|
/* Catches finit_debug (deprecated), --debug, and debug */
|
||||||
if (strstr(tok, "debug"))
|
if (string_compare(tok, "debug"))
|
||||||
dbg = 1;
|
dbg = 1;
|
||||||
|
|
||||||
if (strstr(tok, "rescue") || strstr(tok, "recover"))
|
if (string_compare(tok, "rescue") || string_compare(tok, "recover"))
|
||||||
rescue = 1;
|
rescue = 1;
|
||||||
}
|
}
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
|
|||||||
Reference in new issue
Block a user