BUGFIX: #797 - gettoks did not protect against NULL pointer input

This commit is contained in:
Jason Pyeron
2025-07-29 11:04:05 +02:00
committed by Holger Vogt
parent a44f7ce87a
commit 178b541fb2
+4
View File
@@ -596,6 +596,10 @@ gettoks(char *s)
list = NULL;
prevp = &list;
if (!s) {
return list;
}
/* stripWhite.... uses copy() to return a malloc'ed s, so we have to free it,
using s0 as its starting address */
if (strchr(s, '('))