Browse code

kazoo : fix memset size error & includes

kz_trans was calling memset with wrong size of structure
kx_amqp was including uuid.h from uuid directory

(cherry picked from commit 5113c047d353724d1a6f5a204e5a895ff1dd519a)

Luis Azedo authored on 06/02/2015 16:08:54
Showing 2 changed files
... ...
@@ -5,7 +5,7 @@
5 5
 #include <amqp_framing.h>
6 6
 #include <amqp_tcp_socket.h>
7 7
 #include <json.h>
8
-#include <uuid/uuid.h>
8
+#include <uuid.h>
9 9
 #include "../../mem/mem.h"
10 10
 #include "../../timer_proc.h"
11 11
 #include "../../sr_module.h"
... ...
@@ -172,7 +172,7 @@ void kz_free_pv_value(pv_value_t *val ) {
172 172
 pv_value_t* kz_alloc_pv_value() {
173 173
 	pv_value_t* v = (pv_value_t*) pkg_malloc(sizeof(pv_value_t));
174 174
 	if(v != NULL)
175
-		memset(v, 0, sizeof(pv_value_t*));
175
+		memset(v, 0, sizeof(pv_value_t));
176 176
 	return v;
177 177
 }
178 178