From 5b3df3654c6d8c9be58a211af7ee680af497b180 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sat, 30 Dec 2017 20:28:52 +0100 Subject: [PATCH] conf_parse_cmdline(): Use strict string comparison Signed-off-by: Joachim Nilsson --- src/conf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/conf.c b/src/conf.c index 2912769f..de6cd972 100644 --- a/src/conf.c +++ b/src/conf.c @@ -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);