projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Quell a (correct) GCC warning in the NO_HTMLHELP case.
[u/mdw/putty]
/
psftp.c
diff --git
a/psftp.c
b/psftp.c
index
482d66e
..
ef930bd
100644
(file)
--- a/
psftp.c
+++ b/
psftp.c
@@
-2287,10
+2287,13
@@
struct sftp_command *sftp_getcmd(FILE *fp, int mode, int modeflags)
* >this has "quotes" in<
* >and"this"<
*/
* >this has "quotes" in<
* >and"this"<
*/
- while (
*p
) {
+ while (
1
) {
/* skip whitespace */
while (*p && (*p == ' ' || *p == '\t'))
p++;
/* skip whitespace */
while (*p && (*p == ' ' || *p == '\t'))
p++;
+ /* terminate loop */
+ if (!*p)
+ break;
/* mark start of word */
q = r = p; /* q sits at start, r writes word */
quoting = 0;
/* mark start of word */
q = r = p; /* q sits at start, r writes word */
quoting = 0;