--- ray/src/common/fputword.c 2020/11/13 01:06:14 3.10 +++ ray/src/common/fputword.c 2024/08/03 15:32:59 3.11 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: fputword.c,v 3.10 2020/11/13 01:06:14 greg Exp $"; +static const char RCSid[] = "$Id: fputword.c,v 3.11 2024/08/03 15:32:59 greg Exp $"; #endif /* * Write word to stream, quoting as necessary @@ -30,7 +30,7 @@ FILE *fp; else if ((cp > s) & (*cp == '\'') && cp[1]) quote = '"'; - if (hasspace || quote) { /* output with quotes */ + if (!*s | hasspace | quote) { /* output with quotes */ if (!quote) quote = '"'; fputc(quote, fp); fputs(s, fp);