# | Line 25 | Line 25 | FILE *fp; | |
---|---|---|
25 | for (cp = s; *cp; cp++) | |
26 | if (isspace(*cp)) | |
27 | hasspace++; | |
28 | < | else if (*cp == '"') |
28 | > | else if ((cp > s) & (*cp == '"') && cp[1]) |
29 | quote = '\''; | |
30 | < | else if (*cp == '\'') |
30 | > | else if ((cp > s) & (*cp == '\'') && cp[1]) |
31 | quote = '"'; | |
32 | ||
33 | if (hasspace || quote) { /* output with quotes */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |