mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 04:12:25 +00:00
Another != NULL check after dereferencing
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20104 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ab39d95f53
commit
32ddb1bb28
@ -1420,13 +1420,14 @@ static int parse_obj_params(m_option_t* opt,char *name,
|
||||
char** opts;
|
||||
int r;
|
||||
m_obj_params_t* p = opt->priv;
|
||||
m_struct_t* desc = p->desc;
|
||||
m_struct_t* desc;
|
||||
char* cpy = strdup(param);
|
||||
|
||||
// We need the object desc
|
||||
if(!p)
|
||||
return M_OPT_INVALID;
|
||||
|
||||
desc = p->desc;
|
||||
r = get_obj_params(name,desc->name,cpy,desc,p->separator,&opts);
|
||||
free(cpy);
|
||||
if(r < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user