Commit 182b5b89 authored by Rémi Duraffort's avatar Rémi Duraffort

Check asprintf return value.

parent 2210cf31
......@@ -596,8 +596,9 @@ static char *GetTmpFilePath( access_t *p_access )
#endif
}
asprintf( &psz_filename_base, "%s/vlc-timeshift-%d-%d-",
psz_dir, getpid(), p_access->i_object_id );
if( asprintf( &psz_filename_base, "%s/vlc-timeshift-%d-%d-",
psz_dir, getpid(), p_access->i_object_id ) == -1 )
psz_filename_base = NULL;
free( psz_dir );
return psz_filename_base;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment