]> git.saurik.com Git - apt.git/commitdiff
ftparchive/override.cc: fix "skip empty lines" code, the pointer needs to get de...
authorMichael Vogt <mvo@debian.org>
Fri, 23 Aug 2013 07:15:00 +0000 (09:15 +0200)
committerMichael Vogt <mvo@debian.org>
Fri, 23 Aug 2013 07:15:00 +0000 (09:15 +0200)
ftparchive/override.cc

index 760c201200c1d0d7a8d21380ad79983941927cfd..1288ff133483c83fb9289520649bb26a12e6aa55 100644 (file)
@@ -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++);
       // 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..
         continue;
 
       // Find the package and zero..