projects
/
trust_router.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4c22757
)
Initialize tid response structure
author
Sam Hartman
<hartmans@debian.org>
Fri, 5 Apr 2013 16:43:10 +0000
(12:43 -0400)
committer
Sam Hartman
<hartmans@debian.org>
Fri, 5 Apr 2013 16:54:40 +0000
(12:54 -0400)
tid/tids.c
patch
|
blob
|
history
diff --git
a/tid/tids.c
b/tid/tids.c
index
13a1355
..
202c62a
100644
(file)
--- 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;
}