[27656] in CVS-changelog-for-Kerberos-V5

home help back first fref pref prev next nref lref last post

krb5 commit: Fix typo in t_credstore.c

daemon@ATHENA.MIT.EDU (Greg Hudson)
Tue Apr 2 12:44:37 2013

Date: Tue, 2 Apr 2013 12:44:25 -0400
From: Greg Hudson <ghudson@MIT.EDU>
Message-Id: <201304021644.r32GiPLS001486@drugstore.mit.edu>
To: cvs-krb5@MIT.EDU
Reply-To: krbdev@MIT.EDU
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@MIT.EDU

https://github.com/krb5/krb5/commit/ffde5770beb8803d75419831bc9d2b07e89dc19b
commit ffde5770beb8803d75419831bc9d2b07e89dc19b
Author: Greg Hudson <ghudson@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);
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5

home help back first fref pref prev next nref lref last post