Browse Source

corrected bug reported by Bogdan Pintea and aplied his patch (closes SER-118)

Vaclav Kubart 19 years ago
parent
commit
e36cba9b3b
2 changed files with 5 additions and 0 deletions
  1. 3 0
      lib/cds/ChangeLog
  2. 2 0
      lib/xcap/pres_rules.c

+ 3 - 0
lib/cds/ChangeLog

@@ -1,3 +1,6 @@
+2006-11-06
+	* bug correction - output of get_pres_rules initialized - reported by Bogdan
+
 2006-09-01
 	* corrected memory leaks in route serialization
 	* str_dup separated to macro and implementation function -> better for

+ 2 - 0
lib/xcap/pres_rules.c

@@ -41,6 +41,8 @@ int get_pres_rules(const str_t *username, const str_t *filename,
 	char *uri = NULL;
 	int res = RES_OK;
 	
+	if (dst) *dst = NULL;
+
 	uri = xcap_uri_for_users_document(xcap_doc_pres_rules,
 				username, filename, xcap_params);
 	if (!uri) {