]> git.saurik.com Git - apt.git/blobdiff - ftparchive/override.cc
Merge branch 'feature/edit-sources' into debian/sid
[apt.git] / ftparchive / override.cc
index d363fd0fe9830a5510ef8aea848f960b346020aa..1288ff133483c83fb9289520649bb26a12e6aa55 100644 (file)
 // Include Files                                                       /*{{{*/
 #include <config.h>
 
-#include <apti18n.h>
 #include <apt-pkg/strutl.h>
 #include <apt-pkg/error.h>
 
 #include <stdio.h>
 
 #include "override.h"
+
+#include <apti18n.h>
                                                                        /*}}}*/
 
 // Override::ReadOverride - Read the override file                     /*{{{*/
@@ -48,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..