summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/razor.pc.in4
-rw-r--r--librazor/razor.c12
2 files changed, 10 insertions, 6 deletions
diff --git a/data/razor.pc.in b/data/razor.pc.in
index ddf0ba0..7f9121e 100644
--- a/data/razor.pc.in
+++ b/data/razor.pc.in
@@ -6,7 +6,7 @@ includedir=@includedir@
Name: razor
Description: library for depsolving, installing and removing packages
Version: @VERSION@
-Requires: expat curl
-Libs: -L${libdir} -lexpat -lz -lcurl
+Requires: libcurl
+Libs: -L${libdir} -lexpat -lz -lrazor
Cflags: -I${includedir}/razor
diff --git a/librazor/razor.c b/librazor/razor.c
index b1d7a20..78a1182 100644
--- a/librazor/razor.c
+++ b/librazor/razor.c
@@ -395,10 +395,14 @@ razor_package_get_details(struct razor_set *set,
{
const char *pool = set->details_string_pool.data;
- *summary = &pool[package->summary];
- *description = &pool[package->description];
- *url = &pool[package->url];
- *license = &pool[package->license];
+ if (summary != NULL)
+ *summary = &pool[package->summary];
+ if (description != NULL)
+ *description = &pool[package->description];
+ if (url != NULL)
+ *url = &pool[package->url];
+ if (license != NULL)
+ *license = &pool[package->license];
}
RAZOR_EXPORT const char *