From 9c879bb4f80cf347ad9f61c50dc2ba69a2ce0675 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Thu, 14 Jul 2005 13:04:15 +0000 Subject: [PATCH] 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). --- ChangeLog | 5 +++++ pkg.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) 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" -- 2.39.5