Explorar o código

ftparchive/override.cc: fix "skip empty lines" code, the pointer needs to get de-referenced first

Michael Vogt %!s(int64=13) %!d(string=hai) anos
pai
achega
1c946b5766
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      ftparchive/override.cc

+ 1 - 1
ftparchive/override.cc

@@ -49,7 +49,7 @@ bool Override::ReadOverride(string const &File,bool const &Source)
       // Strip space leading up to the package name, skip blank lines
       char *Pkg = Line;
       for (; isspace(*Pkg) && *Pkg != 0;Pkg++);
-      if (Pkg == 0)
+      if (*Pkg == 0)
 	 continue;
 
       // Find the package and zero..