Forráskód Böngészése

do not use an empty APT_CONFIG environment variable

David Kalnischkies 12 éve
szülő
commit
436bcfbb16
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      apt-pkg/init.cc

+ 1 - 1
apt-pkg/init.cc

@@ -92,7 +92,7 @@ bool pkgInitConfig(Configuration &Cnf)
    
    
    // Read an alternate config file
    // Read an alternate config file
    const char *Cfg = getenv("APT_CONFIG");
    const char *Cfg = getenv("APT_CONFIG");
-   if (Cfg != 0)
+   if (Cfg != 0 && strlen(Cfg) != 0)
    {
    {
       if (RealFileExists(Cfg) == true)
       if (RealFileExists(Cfg) == true)
 	 Res &= ReadConfigFile(Cnf,Cfg);
 	 Res &= ReadConfigFile(Cnf,Cfg);