krb5 commit: Fix typo in t_credstore.c

Greg Hudson ghudson at MIT.EDU
Tue Apr 2 12:44:25 EDT 2013


https://github.com/krb5/krb5/commit/ffde5770beb8803d75419831bc9d2b07e89dc19b
commit ffde5770beb8803d75419831bc9d2b07e89dc19b
Author: Greg Hudson <ghudson at mit.edu>
Date:   Tue Apr 2 12:42:05 2013 -0400

    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 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/tests/gssapi/t_credstore.c b/src/tests/gssapi/t_credstore.c
index a5b851d..575f96d 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);


More information about the cvs-krb5 mailing list