Module: kamailio
Branch: master
Commit: 883760dc931418eb722975a2ba0c665e5393d500
URL:
https://github.com/kamailio/kamailio/commit/883760dc931418eb722975a2ba0c665…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-05-07T00:18:04+02:00
lib/binrpc: initialize val to avoid compiler warnings
- reported by Juha Heinanen
---
Modified: lib/binrpc/binrpc_api.c
---
Diff:
https://github.com/kamailio/kamailio/commit/883760dc931418eb722975a2ba0c665…
Patch:
https://github.com/kamailio/kamailio/commit/883760dc931418eb722975a2ba0c665…
---
diff --git a/lib/binrpc/binrpc_api.c b/lib/binrpc/binrpc_api.c
index 1d4c41c..656b623 100644
--- a/lib/binrpc/binrpc_api.c
+++ b/lib/binrpc/binrpc_api.c
@@ -1151,6 +1151,7 @@ int binrpc_response_to_text(
goto error;
}
+ memset(&val, 0, sizeof(struct binrpc_val));
resp_handle->in_pkt.offset = resp_handle->in_pkt.in_struct =
resp_handle->in_pkt.in_array = 0;
p=resp_handle->reply_buf;