]> err.no Git - pkg-config/commitdiff
Sun Jun 17 17:48:45 2001 Tim Janik <timj@gtk.org>
authorArch Librarian <arch@canonical.com>
Thu, 14 Jul 2005 13:04:15 +0000 (13:04 +0000)
committerArch Librarian <arch@canonical.com>
Thu, 14 Jul 2005 13:04:15 +0000 (13:04 +0000)
Author: timj
Date: 2001-06-17 10:13:09 GMT
Sun Jun 17 17:48:45 2001  Tim Janik  <timj@gtk.org>

        * pkg.c (internal_get_package): fix check before parsing a file at
        "location" to read (location==NULL) instead of (pkg==NULL).

ChangeLog
pkg.c

index 7e5ac2731f9d490da2b9d5969d6b085bf68234aa..3c9bcf251c96a3857bca5cf59798c15feafd8e8b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sun Jun 17 17:48:45 2001  Tim Janik  <timj@gtk.org>
+
+       * pkg.c (internal_get_package): fix check before parsing a file at
+       "location" to read (location==NULL) instead of (pkg==NULL).
+
 2001-06-14  Havoc Pennington  <hp@redhat.com>
 
        * pkg.c (internal_get_package): don't fall back to legacy -config
diff --git a/pkg.c b/pkg.c
index 02b6b160c4e680b56ff3c6955313e0ad033b1303..7226f752c22893e7375f1d77e2a1739070de607a 100644 (file)
--- a/pkg.c
+++ b/pkg.c
@@ -217,7 +217,7 @@ internal_get_package (const char *name, gboolean warn, gboolean check_compat)
         }
     }
       
-  if (pkg == NULL)
+  if (location == NULL)
     {
       if (warn)
         verbose_error ("Package %s was not found in the pkg-config search path.\n"