From ffde5770beb8803d75419831bc9d2b07e89dc19b Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Tue, 2 Apr 2013 12:42:05 -0400 Subject: Fix typo in t_credstore.c Correctly check whether the next argument is NULL in the while loop which parses store elements. --- src/tests/gssapi/t_credstore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit