From f5c06b755e8ff7f69164d3319d88690df117e465 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Thu, 17 Dec 2009 12:16:10 +0100 Subject: [PATCH] switch to calloc() so that NULL compare works below --- lib/gssapi/mech/gss_mech_switch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gssapi/mech/gss_mech_switch.c b/lib/gssapi/mech/gss_mech_switch.c index 3a3254646..165c44e07 100644 --- a/lib/gssapi/mech/gss_mech_switch.c +++ b/lib/gssapi/mech/gss_mech_switch.c @@ -176,7 +176,7 @@ add_builtin(gssapi_mech_interface mech) if (mech == NULL) return 0; - m = malloc(sizeof(*m)); + m = calloc(1, sizeof(*m)); if (m == NULL) return 1; m->gm_so = NULL; -- 2.11.4.GIT