diff --git a/src/kit/shell/src/shellAuto.c b/src/kit/shell/src/shellAuto.c index fc78361f95d5e9f8a5689be9cfb6bd49ae33aa1f..d1c299ab225d6ed0c02d694cd7683f2fbf903d98 100644 --- a/src/kit/shell/src/shellAuto.c +++ b/src/kit/shell/src/shellAuto.c @@ -1251,7 +1251,7 @@ char * lastWord(char * p) { char * p2 = strrchr(p, ','); if (p1 && p2) { - return p1 > p2 ? p1 : p2 + 1; + return p1 > p2 ? p1 + 1 : p2 + 1; } else if (p1) { return p1 + 1; } else if(p2) {