api: initialize saveptr for api_epg and api_idnode
This commit is contained in:
parent
2238be7dd1
commit
60c5bcc934
2 changed files with 2 additions and 2 deletions
|
@ -29,7 +29,7 @@ static htsmsg_t *
|
|||
api_epg_get_list ( const char *s )
|
||||
{
|
||||
htsmsg_t *m = NULL;
|
||||
char *r, *saveptr;
|
||||
char *r, *saveptr = NULL;
|
||||
if (s && s[0] != '\0') {
|
||||
s = r = strdup(s);
|
||||
r = strtok_r(r, ";", &saveptr);
|
||||
|
|
|
@ -28,7 +28,7 @@ api_idnode_flist_conf( htsmsg_t *args, const char *name )
|
|||
{
|
||||
htsmsg_t *m = NULL;
|
||||
const char *s = htsmsg_get_str(args, name);
|
||||
char *r, *saveptr;
|
||||
char *r, *saveptr = NULL;
|
||||
if (s && s[0] != '\0') {
|
||||
s = r = strdup(s);
|
||||
r = strtok_r(r, ",;:", &saveptr);
|
||||
|
|
Loading…
Add table
Reference in a new issue