aboutsummaryrefslogtreecommitdiffhomepage
path: root/fishd.c
diff options
context:
space:
mode:
Diffstat (limited to 'fishd.c')
-rw-r--r--fishd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fishd.c b/fishd.c
index 4c6b6b31..eebc778c 100644
--- a/fishd.c
+++ b/fishd.c
@@ -604,7 +604,7 @@ int main( int argc, char ** argv )
}
else
{
- connection_t *new = malloc( sizeof(connection_t));
+ connection_t *new = calloc( 1, sizeof(connection_t));
new->fd = child_socket;
new->next = conn;
q_init( &new->unsent );