TS-2703 Fix logging when there is no log file configured

Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/f2f57b68
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/f2f57b68
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/f2f57b68

Branch: refs/heads/5.0.x
Commit: f2f57b681745a315a1fc53f47c54195f30cc12e9
Parents: ec24119
Author: Leif Hedstrom <[email protected]>
Authored: Tue Apr 15 11:25:07 2014 -0600
Committer: Leif Hedstrom <[email protected]>
Committed: Tue Apr 15 11:25:07 2014 -0600

----------------------------------------------------------------------
 plugins/experimental/background_fetch/background_fetch.cc | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/f2f57b68/plugins/experimental/background_fetch/background_fetch.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/background_fetch/background_fetch.cc 
b/plugins/experimental/background_fetch/background_fetch.cc
index 13223bd..334caa5 100644
--- a/plugins/experimental/background_fetch/background_fetch.cc
+++ b/plugins/experimental/background_fetch/background_fetch.cc
@@ -158,6 +158,7 @@ dump_headers(TSMBuffer bufp, TSMLoc hdr_loc)
 class BGFetchConfig {
 public:
   BGFetchConfig()
+    : log(NULL)
   {
     _lock = TSMutexCreate();
   }

Reply via email to