Jelajahi Sumber

xcap_root is statically allocated array, so that it cannot be NULL.

Maxim Sobolev 17 tahun lalu
induk
melakukan
a538e11b56
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      modules_s/xcap/xcap_params.c

+ 2 - 2
modules_s/xcap/xcap_params.c

@@ -85,8 +85,8 @@ int fill_xcap_params_impl(struct sip_msg *m, xcap_query_params_t *params)
 	check_params(m);
 	
 	use_default = 1;
-	if (xcap_root) 
-		if (*xcap_root) use_default = 0;
+	if (*xcap_root)
+		use_default = 0;
 	if (use_default) params->xcap_root = default_xcap_root;
 	else {
 		params->xcap_root.s = xcap_root;