Made checking for char explicit
This commit is contained in:
parent
5ea7cd7059
commit
7450d0c537
|
@ -274,7 +274,7 @@ update1:
|
||||||
/* handles delimiter */
|
/* handles delimiter */
|
||||||
if (*current->cmdoutcur != '\n' && *current->cmdoutcur != '\0') {
|
if (*current->cmdoutcur != '\n' && *current->cmdoutcur != '\0') {
|
||||||
d = delim;
|
d = delim;
|
||||||
while (*d)
|
while (*d != '\0')
|
||||||
*(s++) = *(d++);
|
*(s++) = *(d++);
|
||||||
*(s++) = '\n'; /* to mark the end of delimiter */
|
*(s++) = '\n'; /* to mark the end of delimiter */
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue