From: Theodore Tso Date: Wed, 6 Mar 1991 16:43:58 +0000 (+0000) Subject: Fixed bug in the options parser;forgot to check for a NULL in a while loop X-Git-Tag: krb5-1.0-alpha4~106 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=94449b7d6973d1526211a9b05f54480a31ee21ab;p=krb5.git Fixed bug in the options parser;forgot to check for a NULL in a while loop git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1866 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/slave/kprop.c b/src/slave/kprop.c index 05351df42..cf9a18c1c 100644 --- a/src/slave/kprop.c +++ b/src/slave/kprop.c @@ -119,7 +119,7 @@ void PRS(argv) while (word = *argv++) { if (*word == '-') { word++; - while (ch = *word++) { + while (word && (ch = *word++)) { switch(ch){ case 'r': if (*word)