mod_log_config: Fix a bug introduced by r1674261, when using a log provider
authorBen Reser <breser@apache.org>
Thu, 23 Apr 2015 03:18:52 +0000 (03:18 +0000)
committerBen Reser <breser@apache.org>
Thu, 23 Apr 2015 03:18:52 +0000 (03:18 +0000)
the return of ap_default_log_writer was an uninitialized variable.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1675534 13f79535-47bb-0310-9956-ffa450edef68

modules/loggers/mod_log_config.c

index 54e4be9a2c28a6cfc20c2a09e40a170f4c02dc8b..76e3d65618df85af7e5d16eeca71e2e8a8e4158f 100644 (file)
@@ -1668,8 +1668,8 @@ static apr_status_t ap_default_log_writer( request_rec *r,
         info.using_provider = 1;
         info.startup       = 0;
         info.format        = "";
-        data->provider->writer(&info, data->handle,
-                                str, len);
+        rv = data->provider->writer(&info, data->handle,
+                                    str, len);
     }
 
     return rv;