From: Arch Librarian Date: Thu, 14 Jul 2005 13:04:15 +0000 (+0000) Subject: Sun Jun 17 17:48:45 2001 Tim Janik X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c879bb4f80cf347ad9f61c50dc2ba69a2ce0675;p=pkg-config Sun Jun 17 17:48:45 2001 Tim Janik Author: timj Date: 2001-06-17 10:13:09 GMT Sun Jun 17 17:48:45 2001 Tim Janik * pkg.c (internal_get_package): fix check before parsing a file at "location" to read (location==NULL) instead of (pkg==NULL). --- diff --git a/ChangeLog b/ChangeLog index 7e5ac27..3c9bcf2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Jun 17 17:48:45 2001 Tim Janik + + * 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 * pkg.c (internal_get_package): don't fall back to legacy -config diff --git a/pkg.c b/pkg.c index 02b6b16..7226f75 100644 --- 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"