httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1187597 - /httpd/mod_mbox/trunk/module-2.0/mod_mbox_file.c
Date Fri, 21 Oct 2011 23:45:56 GMT
Author: sf
Date: Fri Oct 21 23:45:56 2011
New Revision: 1187597

URL: http://svn.apache.org/viewvc?rev=1187597&view=rev
Log:
simplify code

Modified:
    httpd/mod_mbox/trunk/module-2.0/mod_mbox_file.c

Modified: httpd/mod_mbox/trunk/module-2.0/mod_mbox_file.c
URL: http://svn.apache.org/viewvc/httpd/mod_mbox/trunk/module-2.0/mod_mbox_file.c?rev=1187597&r1=1187596&r2=1187597&view=diff
==============================================================================
--- httpd/mod_mbox/trunk/module-2.0/mod_mbox_file.c (original)
+++ httpd/mod_mbox/trunk/module-2.0/mod_mbox_file.c Fri Oct 21 23:45:56 2011
@@ -195,9 +195,7 @@ char **fetch_context_msgids(request_rec 
     MBOX_LIST *head, *prev = NULL;
     Container *threads, *c;
 
-    char **context = apr_palloc(r->pool, 4 * sizeof(char *));
-
-    memset(context, 0, 4 * sizeof(char *));
+    char **context = apr_pcalloc(r->pool, 4 * sizeof(char *));
 
     head = mbox_load_index(r, f, NULL);
 



Mime
View raw message