BUGFIX: #797 - gettoks did not protect against NULL pointer input
This commit is contained in:
parent
a478507b5f
commit
70c52aa96d
|
|
@ -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, '('))
|
||||
|
|
|
|||
Loading…
Reference in New Issue