From: Michael Vogt Date: Fri, 23 Aug 2013 07:15:00 +0000 (+0200) Subject: ftparchive/override.cc: fix "skip empty lines" code, the pointer needs to get de... X-Git-Tag: 0.9.11.1~1^2~1 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/1c946b5766c8f23e20d0032fcd9a01e2f891fbf9?ds=sidebyside ftparchive/override.cc: fix "skip empty lines" code, the pointer needs to get de-referenced first --- diff --git a/ftparchive/override.cc b/ftparchive/override.cc index 760c20120..1288ff133 100644 --- a/ftparchive/override.cc +++ b/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..