# HG changeset patch # User reimar # Date 1160298655 0 # Node ID e3a61060d45840a37b666c4ef9c1d801c76bc1d6 # Parent 7a82d0a0d526662d3726c4d095825597472e7518 Another != NULL check after dereferencing diff -r 7a82d0a0d526 -r e3a61060d458 m_option.c --- a/m_option.c Sun Oct 08 09:07:51 2006 +0000 +++ b/m_option.c Sun Oct 08 09:10:55 2006 +0000 @@ -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)