From 18e051e76087bf9a08786b81e0eac5a568ca2ba5 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sat, 5 May 2012 22:09:33 +0000 Subject: [PATCH] main: pkg-config only allows printing variables from the first package, so exit once we've done that --- main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.c b/main.c index 562ab47..318e06c 100644 --- a/main.c +++ b/main.c @@ -175,6 +175,8 @@ print_variable(pkg_t *pkg, void *unused) printf("%s", var); free(var); + + exit(EXIT_SUCCESS); } }