From 5e8a6048b40aa6cf9ade2bf3f1a6834947fda308 Mon Sep 17 00:00:00 2001 From: Sam Hartman Date: Fri, 5 Apr 2013 12:43:10 -0400 Subject: [PATCH] Initialize tid response structure --- tid/tids.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tid/tids.c b/tid/tids.c index 13a1355..202c62a 100644 --- a/tid/tids.c +++ b/tid/tids.c @@ -209,7 +209,7 @@ static void tids_handle_connection (TIDS_INSTANCE *tids, int conn) } /* Allocate a response structure and populate common fields */ - if ((NULL == (resp = malloc(sizeof(TID_RESP))))) { + if ((NULL == (resp = calloc(sizeof(TID_RESP), 1)))) { fprintf(stderr, "Error allocating response structure.\n"); return; } -- 2.1.4