projects
/
umurmur.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use Memory_safeCalloc() to allocate zeroed memory.
[umurmur.git]
/
src
/
channel.c
diff --git
a/src/channel.c
b/src/channel.c
index da15a52f175e602bc3c0a633b472862f4684e013..346ea44ddfd9699f19da2181b77de2b85aefeab1 100644
(file)
--- a/
src/channel.c
+++ b/
src/channel.c
@@
-47,8
+47,7
@@
static channel_t *createChannel(int id, const char *name, const char *desc)
{
channel_t *ch;
- ch = Memory_safeMalloc(1, sizeof(channel_t));
- memset(ch, 0, sizeof(channel_t));
+ ch = Memory_safeCalloc(1, sizeof(channel_t));
ch->id = id;
ch->name = strdup(name);
if (desc)