summaryrefslogtreecommitdiff
path: root/librazor
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-06-28 19:22:55 -0400
committerKristian Høgsberg <krh@redhat.com>2008-06-28 19:22:55 -0400
commit4243cad2bb5bc49d237a8c9afe064b2253268ed3 (patch)
tree997709e09e5a2d384f1daeb44cfef36a6035c71e /librazor
parent413a553fd5f86088395d942c85a78debdec32a6d (diff)
parent0150493f0c3c29d1224ac2a0abd8dfe93531e5de (diff)
Merge commit 'fdo/master'
Diffstat (limited to 'librazor')
-rw-r--r--librazor/razor.c12
1 files changed, 8 insertions, 4 deletions
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 *