Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

message: fixes to irc_message_reset

  • Loading branch information...
commit a848867c9e050e1314da66a3d3c8ae4b1db5fa70 1 parent 7967ad2
@aji authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/message.c
View
4 src/message.c
@@ -36,10 +36,12 @@ int irc_message_reset(irc_message_t *msg)
return -1;
MOWGLI_LIST_FOREACH_SAFE(n, tn, msg->args.head) {
- mowgli_list_delete(n, &msg->args);
+ mowgli_node_delete(n, &msg->args);
mowgli_node_free(n);
}
+ memset(msg, 0, sizeof(*msg));
+
return 0;
}
Please sign in to comment.
Something went wrong with that request. Please try again.