do not check a char variable for -1 for error but for 0 correctly, as it

will never be -1; from maintainer andrey@smagin.com after being prompted
by me, from icewm CVS
This commit is contained in:
pvalchev 2002-12-13 07:27:39 +00:00
parent ebc94b3e03
commit a606fb2e0b

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_wmsession_cc,v 1.1 2002/12/13 07:27:39 pvalchev Exp $
--- src/wmsession.cc.orig Tue Oct 9 09:54:04 2001
+++ src/wmsession.cc Thu Dec 12 23:46:25 2002
@@ -198,7 +198,7 @@ static int rd_str(char *s, char *d) {
c = *s++;
}
- while (c != EOF) {
+ while (c != 0) {
if (c == '"' && !old) {
c = *s++;
break;