From 0af36bf818f05da9f4f8d803eaf9a9981ef50fdd Mon Sep 17 00:00:00 2001 From: KIMURA Masaru Date: Mon, 16 Apr 2012 16:55:46 +0900 Subject: [PATCH] Use strcmp() for key check instead of "!=". --- src/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.c b/src/util.c index 940d8d7ed..5d8444c8e 100644 --- a/src/util.c +++ b/src/util.c @@ -634,7 +634,7 @@ void opt_set_int(const char *name, int val) int opt_get_int(const char *name) { struct option *it; - for (it = options; (it != NULL) && (it->key != name); it = it->next) + for (it = options; (it != NULL) && strcmp(it->key, name); it = it->next) ; if (it != NULL)