diff --git a/src/epggrab/module/xmltv.c b/src/epggrab/module/xmltv.c index c6f1006e..d8616f9a 100644 --- a/src/epggrab/module/xmltv.c +++ b/src/epggrab/module/xmltv.c @@ -634,7 +634,7 @@ static void _xmltv_load_grabbers ( void ) size_t i, p, n; char *outbuf; char name[1000]; - char *tmp, *tmp2, *path; + char *tmp, *tmp2 = NULL, *path; /* Load data */ outlen = spawn_and_store_stdout(XMLTV_FIND, NULL, &outbuf); diff --git a/src/filebundle.c b/src/filebundle.c index 15a4d4c5..a7db77b0 100644 --- a/src/filebundle.c +++ b/src/filebundle.c @@ -214,7 +214,7 @@ fb_dir *fb_opendir ( const char *path ) /* Bundle */ #if ENABLE_BUNDLE - char *tmp1, *tmp2, *tmp3; + char *tmp1, *tmp2, *tmp3 = NULL; *tmp1 = strdup(path); *tmp2 = strtok_r(tmp1, "/", &tmp3); filebundle_entry_t *fb = filebundle_root; diff --git a/src/spawn.c b/src/spawn.c index 0cee4bdd..534e5af7 100644 --- a/src/spawn.c +++ b/src/spawn.c @@ -53,7 +53,7 @@ find_exec ( const char *name, char *out, size_t len ) { int ret = 0; char bin[512]; - char *path, *tmp, *tmp2; + char *path, *tmp, *tmp2 = NULL; DIR *dir; struct dirent *de; struct stat st; diff --git a/src/webui/extjs.c b/src/webui/extjs.c index e27935af..efb79c80 100644 --- a/src/webui/extjs.c +++ b/src/webui/extjs.c @@ -352,7 +352,7 @@ extjs_channels_update(htsmsg_t *in) if((s = htsmsg_get_str(c, "epggrabsrc")) != NULL) { char *tmp = strdup(s); - char *sptr, *sptr2; + char *sptr = NULL, *sptr2 = NULL; char *modecid = strtok_r(tmp, ",", &sptr); char *modid, *ecid; epggrab_module_t *mod;