]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Change ptr array creation function.
authorVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 4 Jun 2012 19:48:11 +0000 (23:48 +0400)
committerVsevolod Stakhov <vsevolod@rambler-co.ru>
Mon, 4 Jun 2012 19:48:11 +0000 (23:48 +0400)
src/dkim.c

index bd5d5c5639721f4d2c7b7a880024bf98618e3692..d50ddc0ebfe31f6d5602ea564a1db94eb33b567d 100644 (file)
@@ -225,7 +225,7 @@ rspamd_dkim_parse_hdrlist (rspamd_dkim_context_t* ctx, const gchar *param, gsize
        }
 
        if (count > 0) {
-               ctx->hlist = g_ptr_array_new_full (count, NULL);
+               ctx->hlist = g_ptr_array_sized_new (count);
        }
        else {
                return FALSE;