rc: fix $ifs bug introduced with utf-8 code

R=rsc
http://codereview.appspot.com/4187050
This commit is contained in:
Russ Cox 2011-02-16 12:48:06 -05:00
parent 425a2b7863
commit 6886b3cd89

View file

@ -156,8 +156,10 @@ Xbackq(void)
continue; continue;
} }
stop: stop:
*s = '\0'; if(s != wd) {
v = newword(wd, v); *s = '\0';
v = newword(wd, v);
}
s = wd; s = wd;
} }
if(s!=wd){ if(s!=wd){