NULL is a pointer, not string terminator
Replace some instances of NULL to '\0', when referring to string terminator.
This commit is contained in:
committed by
Jon Trulson
parent
3b06b6a6b7
commit
706fccb50e
@@ -69,7 +69,7 @@ _DtCmGetPrefix(char *str, char sep)
|
||||
if (ptr == buf)
|
||||
return(NULL);
|
||||
else {
|
||||
*ptr = NULL;
|
||||
*ptr = '\0';
|
||||
return(strdup(buf));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user