Skip to content

Commit

Permalink
Use strcmp() for key check instead of "!=".
Browse files Browse the repository at this point in the history
  • Loading branch information
hiyuh committed Apr 16, 2012
1 parent 3cbd5dc commit 0af36bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util.c
Expand Up @@ -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)
Expand Down

0 comments on commit 0af36bf

Please sign in to comment.