summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiscomfitor <michael.blumenkrantz@gmail.com>2013-09-01 15:41:15 +0100
committerdiscomfitor <michael.blumenkrantz@gmail.com>2013-09-01 15:41:15 +0100
commit1b3ecbf7ac87e0db422767a0b2144154e8ce81ec (patch)
tree501845a4e72b398d4ed041df36822433e1b3b825
parentdf5051e855a7243d823b108b66badb64fb3db41b (diff)
s/malloc/calloc/
-rw-r--r--src/bin/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/main.c b/src/bin/main.c
index 67f44fb..9237b76 100644
--- a/src/bin/main.c
+++ b/src/bin/main.c
@@ -162,7 +162,7 @@ con(void *d EINA_UNUSED, int type EINA_UNUSED, Shotgun_Auth *auth)
162 { 162 {
163 S2_Auth *sa; 163 S2_Auth *sa;
164 164
165 sa = malloc(sizeof(S2_Auth)); 165 sa = calloc(1, sizeof(S2_Auth));
166 sa->auth = auth; 166 sa->auth = auth;
167 shotgun_data_set(auth, sa); 167 shotgun_data_set(auth, sa);
168 sa->contacts = eina_hash_string_superfast_new((Eina_Free_Cb)sc_free); 168 sa->contacts = eina_hash_string_superfast_new((Eina_Free_Cb)sc_free);