diff options
author | Greg Hudson <ghudson@mit.edu> | 2013-04-02 12:42:05 -0400 |
---|---|---|
committer | Greg Hudson <ghudson@mit.edu> | 2013-04-02 12:42:05 -0400 |
commit | ffde5770beb8803d75419831bc9d2b07e89dc19b (patch) | |
tree | 68e4ba8f7f3301cddfea6bdb90659dfa6b0266b6 | |
parent | f9c5d2277c23e40b2e929cef6e4654113b66da68 (diff) | |
download | krb5-ffde5770beb8803d75419831bc9d2b07e89dc19b.tar.gz krb5-ffde5770beb8803d75419831bc9d2b07e89dc19b.tar.xz krb5-ffde5770beb8803d75419831bc9d2b07e89dc19b.zip |
Fix typo in t_credstore.c
Correctly check whether the next argument is NULL in the while loop
which parses store elements.
-rw-r--r-- | src/tests/gssapi/t_credstore.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |