git://project.juiblex.co.uk
/
razor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
8434a03
)
Allow NULL pointers in razor_package_get_details().
author
Richard Hughes
<richard@hughsie.com>
Wed, 25 Jun 2008 19:31:50 +0000 (15:31 -0400)
committer
Kristian Høgsberg
<krh@redhat.com>
Wed, 25 Jun 2008 19:32:11 +0000 (15:32 -0400)
librazor/razor.c
patch
|
blob
|
history
diff --git
a/librazor/razor.c
b/librazor/razor.c
index
3bfee2f
..
813111f
100644
(file)
--- 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 *