xcap_client: safety check for namespace variable
authorDaniel-Constantin Mierla <miconda@gmail.com>
Mon, 24 Jul 2017 10:22:00 +0000 (12:22 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Mon, 24 Jul 2017 10:22:00 +0000 (12:22 +0200)
src/modules/xcap_client/xcap_functions.c

index 6b875b1..cee161b 100644 (file)
@@ -223,7 +223,7 @@ xcap_node_sel_t* xcapNodeSelAddStep(xcap_node_sel_t* curr_sel, str* name,
        }
 
        curr_sel->size+= 1+ new_step.len;
-       if(namespace->len)
+       if(namespace && namespace->len)
        {
                curr_sel->size+= namespace->len+ 3;
        }