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