Detected by using AddressSanitizer.
Leeann Bent <lbent@cs.ucsd.edu>
Leonardo Taccari
Leonid Evdokimov <leon@darkk.net.ru>
+ Liangliang Zhai <zhailiangliang@loongson.cn>
libit <sambabug.lb@gmail.com>
Lubos Uhliarik <luhliari@redhat.com>
Luigi Gangitano <luigi@debian.org>
*d = '\0';
// We are expecting a separator after quoted string, space or one of "()#"
- if (*(s + 1) != '\0' && !strchr(w_space "()#", *(s + 1)) && !errorStr) {
+ if (!errorStr && *(s + 1) != '\0' && !strchr(w_space "()#", *(s + 1))) {
errorStr = "Expecting space after the end of quoted token";
errorPos = token;
}