projects
/
cascardo
/
chat.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix bug with uninitialized variable.
[cascardo/chat.git]
/
chat.c
diff --git
a/chat.c
b/chat.c
index
9cfe397
..
dfa83eb
100644
(file)
--- a/
chat.c
+++ b/
chat.c
@@
-43,7
+43,7
@@
hc_xmpp_chat (hc_xmpp_t *xmpp, iks *message)
char *from;
char *to;
char *body;
- int sent;
+ int sent
= 0
;
str = iks_string (iks_stack (message), message);
write (fd, str, strlen (str));
from = iks_find_attrib (message, "from");