Made checking for char explicit

This commit is contained in:
Ashish Kumar Yadav 2020-08-12 12:50:04 +05:30
parent 5ea7cd7059
commit 7450d0c537

View file

@ -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 {