apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject svn commit: r1083590 - /apr/apr/trunk/test/testhooks.c
Date Sun, 20 Mar 2011 21:57:47 GMT
Author: trawick
Date: Sun Mar 20 21:57:46 2011
New Revision: 1083590

URL: http://svn.apache.org/viewvc?rev=1083590&view=rev
Log:
fix data initialization error which could cause testhooks to fail

Modified:
    apr/apr/trunk/test/testhooks.c

Modified: apr/apr/trunk/test/testhooks.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testhooks.c?rev=1083590&r1=1083589&r2=1083590&view=diff
==============================================================================
--- apr/apr/trunk/test/testhooks.c (original)
+++ apr/apr/trunk/test/testhooks.c Sun Mar 20 21:57:46 2011
@@ -70,6 +70,7 @@ static void *toy_hook_probe_entry(const 
     hook_probe_data_t *ud = apr_palloc(probe_buf_pool, sizeof *ud);
     ud->buf_size = 18;
     ud->buf = (char *)apr_palloc(probe_buf_pool, ud->buf_size);
+    ud->buf[0] = '\0';
     safe_concat(ud->buf, ud->buf_size, "E");
     return (void *)ud;
 }



Mime
View raw message