You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Eric Dumas <du...@gandalf.freenix.org> on 1999/11/25 19:19:57 UTC

Fix in apr_pools.c

	Hello.

There is a small bug in apr_pool.c which can be fixed with the
following patch:

Platform tested: Solaris2.6/egcs-1.1.2 release

===================================================================
RCS file: /cvs/apache/apache-2.0/src/lib/apr/lib/apr_pools.c,v
retrieving revision 1.22
diff -u -r1.22 apr_pools.c
--- apr_pools.c 1999/11/24 22:30:06     1.22
+++ apr_pools.c 1999/11/25 18:12:52
@@ -207,7 +207,7 @@
             return NULL; \
         } \
         else { \
-            fprintf(stderr, "%s", str);
+            fprintf(stderr, "%s", str); \
             func(retcode); \
         } \
     }
@@ -278,7 +278,7 @@
 #endif /* ALLOC_STATS */
 
     blok = (union block_hdr *) malloc(size + sizeof(union block_hdr));
     blok = (union block_hdr *) malloc(size + sizeof(union block_hdr));
-    APR_ABORT(blok == NULL, APR_ENOMEM, (*apr_abort)
+    APR_ABORT(blok == NULL, APR_ENOMEM, apr_abort,
               "Ouch!  malloc failed in malloc_block()\n");
     debug_fill(blok, size + sizeof(union block_hdr));
     blok->h.next = NULL;


-- 
                 Eric Dumas (dumas@Linux.EU.Org, dumas@freenix.org)
                          http://www.freenix.org/~dumas/
-- Linux -- Linux -- Linux -- Linux -- Linux -- Linux -- Linux -- Linux --