[MPlayer-cvslog] r20104 - trunk/m_option.c

reimar subversion at mplayerhq.hu
Sun Oct 8 11:10:55 CEST 2006


Author: reimar
Date: Sun Oct  8 11:10:55 2006
New Revision: 20104

Modified:
   trunk/m_option.c

Log:
Another != NULL check after dereferencing


Modified: trunk/m_option.c
==============================================================================
--- trunk/m_option.c	(original)
+++ trunk/m_option.c	Sun Oct  8 11:10:55 2006
@@ -1420,13 +1420,14 @@
   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)



More information about the MPlayer-cvslog mailing list