Issue #1454 - init strtok_r() state ptrs, older gcc whinges.
This commit is contained in:
parent
4419dde14b
commit
7d97d1f648
4 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue