summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2022-05-03 17:50:35 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2022-05-03 18:56:58 -0400
commit2eb9633ca96b5d453d842bc95333e36869fb3a7a (patch)
tree4fcc2d6117be2f76b5e0ff98fe206fc080da01bf
parentc4782159e441478761f0a573103b2df24ab6ded9 (diff)
downloadlibnice-2eb9633ca96b5d453d842bc95333e36869fb3a7a.tar.gz
agent: Initialize variable
There is a codepath where it can be used without being filled. Found by coverity.
-rw-r--r--agent/agent.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/agent/agent.c b/agent/agent.c
index 8cde228..fb494d3 100644
--- a/agent/agent.c
+++ b/agent/agent.c
@@ -4219,6 +4219,7 @@ agent_recv_message_unlocked (
/* We need an address for packet parsing, below. */
if (message->from == NULL) {
+ nice_address_init (&from);
message->from = &from;
}