diff options
author | Richard Hughes <richard@hughsie.com> | 2008-06-25 15:31:50 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@redhat.com> | 2008-06-25 15:32:11 -0400 |
commit | 72be99df310fab9466eff9ea5814761334f72b2c (patch) | |
tree | 09e41466386963d42749446eca2899d445971682 /librazor | |
parent | 8434a032e960215cfffd8954fef92c5562b4c980 (diff) |
Allow NULL pointers in razor_package_get_details().
Diffstat (limited to 'librazor')
-rw-r--r-- | librazor/razor.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/librazor/razor.c b/librazor/razor.c index 3bfee2f..813111f 100644 --- a/librazor/razor.c +++ b/librazor/razor.c @@ -391,10 +391,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 * |