summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Fredrik Hammar <hammy.lite@gmail.com>2007-08-07 18:04:06 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-10-06 09:51:34 +0200
commitc271c51a226307fc2441991b8c49e359e1397a4d (patch)
tree2c9c42d33b56aea18009660f161121657689eb2f
parentaf935241ba34ec08021ea398f4f72094fed76e02 (diff)
2007-08-07 Carl Fredrik Hammar <hammy.lite@gmail.com>
* channel.c (channel_create): Initialize hook. (channel_create): Fix comment. * channel.h (channel_create): Fix comment.
-rw-r--r--libchannel/channel.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libchannel/channel.c b/libchannel/channel.c
index d8e41e1b8..517884a04 100644
--- a/libchannel/channel.c
+++ b/libchannel/channel.c
@@ -26,9 +26,9 @@
#include "channel.h"
-/* Allocate a new channel of class CLASS, with FLAGS set (using
- channel_set_flags,) that is returned in CHANNEL. Return ENOMEM if
- memory for channel couldn't be allocated. */
+/* Allocate a new channel of class CLASS, with FLAGS set and return it
+ in CHANNEL. Return ENOMEM if memory for channel couldn't be
+ allocated. */
error_t
channel_create (const struct channel_class *class,
int flags, struct channel **channel)
@@ -39,6 +39,7 @@ channel_create (const struct channel_class *class,
new->flags = flags;
new->class = class;
+ new->hook = 0;
*channel = new;