X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fhelper%2Fjim-nvp.c;h=e21bc680d8349871c8509ef1a0639ecfee3b80b0;hp=580b079157f0b46f601c56fa0509031d60c31312;hb=c0c7d6fe8b04f521a7262303083ef5eb6ebaf4e5;hpb=54e699b2601036e384a124657aa1fbdd9ff2dc87 diff --git a/src/helper/jim-nvp.c b/src/helper/jim-nvp.c index 580b079157..e21bc680d8 100644 --- a/src/helper/jim-nvp.c +++ b/src/helper/jim-nvp.c @@ -66,7 +66,7 @@ int jim_get_nvp(Jim_Interp *interp, struct jim_nvp *jim_nvp_name2value_simple(const struct jim_nvp *p, const char *name) { while (p->name) { - if (0 == strcmp(name, p->name)) + if (strcmp(name, p->name) == 0) break; p++; } @@ -76,7 +76,7 @@ struct jim_nvp *jim_nvp_name2value_simple(const struct jim_nvp *p, const char *n struct jim_nvp *jim_nvp_name2value_nocase_simple(const struct jim_nvp *p, const char *name) { while (p->name) { - if (0 == strcasecmp(name, p->name)) + if (strcasecmp(name, p->name) == 0) break; p++; }