diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-07-18 23:30:11 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-07-20 00:05:07 +0200 |
commit | 6264d3d94b1ba827a507433efa630d92145cb3cb (patch) | |
tree | 5deb2a340a71f9b91f7c733b976e64bbcd74759a /asn1c-talloc.patch | |
parent | fa034009a11b0ea5f91074e6137e8711240217a6 (diff) |
we have to replace calloc with talloc_zero_size() to ensure initialization
Diffstat (limited to 'asn1c-talloc.patch')
-rw-r--r-- | asn1c-talloc.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asn1c-talloc.patch b/asn1c-talloc.patch index f0a32b0..909772f 100644 --- a/asn1c-talloc.patch +++ b/asn1c-talloc.patch @@ -21,7 +21,7 @@ index 67f055a..45b1adb 100644 -#define FREEMEM(ptr) free(ptr) +extern void *talloc_asn1_ctx; + -+#define CALLOC(nmemb, size) talloc_size(talloc_asn1_ctx, (nmemb) * (size)) ++#define CALLOC(nmemb, size) talloc_zero_size(talloc_asn1_ctx, (nmemb) * (size)) +#define MALLOC(size) talloc_size(talloc_asn1_ctx, size) +#define REALLOC(oldptr, size) talloc_realloc_size(talloc_asn1_ctx, oldptr, size) +#define FREEMEM(ptr) talloc_free(ptr) |