浏览代码

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

Vaclav Kubart 19 年之前
父节点
当前提交
e36cba9b3b
共有 2 个文件被更改,包括 5 次插入0 次删除
  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) {