aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/presence.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2008-01-13 14:48:32 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2008-01-13 14:48:32 +0000
commitdded27d9a58237036b23f152eb6dfeaad3ae762d (patch)
tree4b169a9335379509cf6859809de376d6797c465b /protocols/jabber/presence.c
parent07ff8a2c5af9b281fa6cdf6f1273f7c55c83bdb2 (diff)
Fixed "Conditional jump or move depends on uninitialised value(s)" at
jabber_pkt_presence (presence.c:174). Valgrind-Wilmer: 1-0.
Diffstat (limited to 'protocols/jabber/presence.c')
-rw-r--r--protocols/jabber/presence.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/jabber/presence.c b/protocols/jabber/presence.c
index 3bfc83ff..2c49b800 100644
--- a/protocols/jabber/presence.c
+++ b/protocols/jabber/presence.c
@@ -165,7 +165,7 @@ xt_status jabber_pkt_presence( struct xt_node *node, gpointer data )
if( send_presence )
{
- int is_away;
+ int is_away = 0;
if( send_presence->away_state && !( *send_presence->away_state->code == 0 ||
strcmp( send_presence->away_state->code, "chat" ) == 0 ) )