summaryrefslogtreecommitdiff
path: root/apt-pkg/init.cc
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg/init.cc')
-rw-r--r--apt-pkg/init.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/init.cc b/apt-pkg/init.cc
index a2e58fae2..5d21b3847 100644
--- a/apt-pkg/init.cc
+++ b/apt-pkg/init.cc
@@ -93,7 +93,7 @@ bool pkgInitConfig(Configuration &Cnf)
// Read an alternate config file
const char *Cfg = getenv("APT_CONFIG");
- if (Cfg != 0)
+ if (Cfg != 0 && strlen(Cfg) != 0)
{
if (RealFileExists(Cfg) == true)
Res &= ReadConfigFile(Cnf,Cfg);