Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
api: initialize saveptr for api_epg and api_idnode
  • Loading branch information
perexg committed Sep 28, 2014
1 parent 2238be7 commit 60c5bcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/api_epg.c
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/api/api_idnode.c
Expand Up @@ -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);
Expand Down

0 comments on commit 60c5bcc

Please sign in to comment.