From: Greg Hudson Date: Tue, 2 Apr 2013 16:42:05 +0000 (-0400) Subject: Fix typo in t_credstore.c X-Git-Tag: krb5-1.12-alpha1~228 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffde5770beb8803d75419831bc9d2b07e89dc19b;p=thirdparty%2Fkrb5.git Fix typo in t_credstore.c Correctly check whether the next argument is NULL in the while loop which parses store elements. --- diff --git a/src/tests/gssapi/t_credstore.c b/src/tests/gssapi/t_credstore.c index a5b851dae4..575f96d340 100644 --- a/src/tests/gssapi/t_credstore.c +++ b/src/tests/gssapi/t_credstore.c @@ -75,7 +75,7 @@ main(int argc, char *argv[]) errout("OOM"); store.count = 0; while (*argv != NULL) { - if ((*argv + 1) == NULL) + if (*(argv + 1) == NULL) usage(); store.elements[store.count].key = *argv; store.elements[store.count].value = *(argv + 1);