summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2014-02-10 14:42:56 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2014-02-10 18:07:50 +0100
commit436bcfbb16ce558c228a3a6e29ad77c0c62664bc (patch)
treeec986defaed4fa10655f4788223688e3cffb2214 /apt-pkg
parentbfa1ebf5d062dfcdb2019725df9069148ceaef0b (diff)
do not use an empty APT_CONFIG environment variable
Diffstat (limited to 'apt-pkg')
-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 81b601a7f..6ab5ec42d 100644
--- a/apt-pkg/init.cc
+++ b/apt-pkg/init.cc
@@ -92,7 +92,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);