Author: rhuijben
Date: Tue Nov 24 08:41:45 2015
New Revision: 1716070

URL: http://svn.apache.org/viewvc?rev=1716070&view=rev
Log:
* config_store.c
  (create_config_hdr): Split out further... I'm guessing we get a NULL
    result and a bus error in the memset.

Modified:
    serf/branches/pump-investigate/config_store.c

Modified: serf/branches/pump-investigate/config_store.c
URL: 
http://svn.apache.org/viewvc/serf/branches/pump-investigate/config_store.c?rev=1716070&r1=1716069&r2=1716070&view=diff
==============================================================================
--- serf/branches/pump-investigate/config_store.c (original)
+++ serf/branches/pump-investigate/config_store.c Tue Nov 24 08:41:45 2015
@@ -41,8 +41,9 @@ static serf__config_hdr_t *create_config
 {
     serf__config_hdr_t *hdr;
     fprintf(stderr, "In alloc helper\n");
-    hdr  = apr_pcalloc(pool, sizeof(serf__config_hdr_t));
+    hdr = apr_palloc(pool, sizeof(serf__config_hdr_t));
     fprintf(stderr, "Header: %p\n", hdr);
+    memset(hdr, 0, sizeof(serf__config_hdr_t));
     hdr->pool = pool;
     return hdr;
 }


Reply via email to