diff options
author | David Kalnischkies <david@kalnischkies.de> | 2014-02-10 14:42:56 +0100 |
---|---|---|
committer | David Kalnischkies <david@kalnischkies.de> | 2014-02-10 18:07:50 +0100 |
commit | 436bcfbb16ce558c228a3a6e29ad77c0c62664bc (patch) | |
tree | ec986defaed4fa10655f4788223688e3cffb2214 | |
parent | bfa1ebf5d062dfcdb2019725df9069148ceaef0b (diff) |
do not use an empty APT_CONFIG environment variable
-rw-r--r-- | apt-pkg/init.cc | 2 |
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); |