From 8e366ad4fec486419e594db80c84b113eba499dd Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 19 Jun 2001 17:43:43 +0000 Subject: [PATCH] * ftpcmd.y: Cleanup potential ambiguity between comparsion and pre-increment for a variable. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13388 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/gssftp/ftpd/ChangeLog | 5 +++++ src/appl/gssftp/ftpd/ftpcmd.y | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/appl/gssftp/ftpd/ChangeLog b/src/appl/gssftp/ftpd/ChangeLog index 33a8a2363..2f532cb3f 100644 --- a/src/appl/gssftp/ftpd/ChangeLog +++ b/src/appl/gssftp/ftpd/ChangeLog @@ -1,3 +1,8 @@ +2001-06-19 Ezra Peisach + + * ftpcmd.y: Cleanup potential ambiguity between comparsion and + pre-increment for a variable. + 2001-06-15 Ezra Peisach * ftpcmd.y, ftpd.c: Cast argument to isspace()/isdigit() to int. diff --git a/src/appl/gssftp/ftpd/ftpcmd.y b/src/appl/gssftp/ftpd/ftpcmd.y index 1e4b9eadd..2b9654335 100644 --- a/src/appl/gssftp/ftpd/ftpcmd.y +++ b/src/appl/gssftp/ftpd/ftpcmd.y @@ -1283,7 +1283,7 @@ yylex() dostr1: if (cbuf[cpos] == ' ') { cpos++; - state = state == OSTR ? STR2 : ++state; + state = state == OSTR ? STR2 : state+1; return (SP); } break; -- 2.26.2