From: serassio <> Date: Sun, 18 Dec 2005 16:57:59 +0000 (+0000) Subject: visible_appname_string must be initialized during FS tests. X-Git-Tag: SQUID_3_0_PRE4~447 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=474dfa840a015331358159dce4bf50dbd1c3a670;p=thirdparty%2Fsquid.git visible_appname_string must be initialized during FS tests. --- diff --git a/src/tests/testCoss.cc b/src/tests/testCoss.cc index 44ec10dfe4..09d00cb5f9 100644 --- a/src/tests/testCoss.cc +++ b/src/tests/testCoss.cc @@ -52,6 +52,8 @@ testCoss::commonInit() /* garh garh */ storeReplAdd("lru", createRemovalPolicy_lru); + visible_appname_string = xstrdup(PACKAGE "/" VERSION); + Mem::Init(); cbdataInit(); diff --git a/src/tests/testNull.cc b/src/tests/testNull.cc index 7abf909770..24da87d9d3 100644 --- a/src/tests/testNull.cc +++ b/src/tests/testNull.cc @@ -52,6 +52,8 @@ testNull::commonInit() /* garh garh */ storeReplAdd("lru", createRemovalPolicy_lru); + visible_appname_string = xstrdup(PACKAGE "/" VERSION); + Mem::Init(); cbdataInit(); diff --git a/src/tests/testUfs.cc b/src/tests/testUfs.cc index 0b0d594b9e..b14f0ab425 100644 --- a/src/tests/testUfs.cc +++ b/src/tests/testUfs.cc @@ -89,6 +89,8 @@ testUfs::testUfsSearch() char *config_line=xstrdup("foo 100 1 1"); + visible_appname_string = xstrdup(PACKAGE "/" VERSION); + strtok(config_line, w_space); aStore->parse(0, path);