]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix typo in t_credstore.c
authorGreg Hudson <ghudson@mit.edu>
Tue, 2 Apr 2013 16:42:05 +0000 (12:42 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 2 Apr 2013 16:42:05 +0000 (12:42 -0400)
Correctly check whether the next argument is NULL in the while loop
which parses store elements.

src/tests/gssapi/t_credstore.c

index a5b851dae4dd14967b7e4c072053e3cde2ba407f..575f96d340fcbeccacff85e87d7907f32a878afc 100644 (file)
@@ -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);