diff options
author | Pankaj <pankaj.s01@samsung.com> | 2015-11-06 05:48:00 +0000 |
---|---|---|
committer | Stef Walter <stefw@redhat.com> | 2015-11-09 09:44:08 +0100 |
commit | 957c6d8c610b71665573564f2299d9aca86d2483 (patch) | |
tree | 98a190c7d78d627c80335b73cfe481a9d575a42f /common/mock.c | |
parent | 4e22ebfda7b51ec978eacf0c3653bb534de97fe3 (diff) | |
download | p11-kit-957c6d8c610b71665573564f2299d9aca86d2483.tar.gz |
common: Fix warning about dereferencing NULL pointer
https://bugs.freedesktop.org/show_bug.cgi?id=92842
Diffstat (limited to 'common/mock.c')
-rw-r--r-- | common/mock.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/mock.c b/common/mock.c index a73ae9d..ab223f8 100644 --- a/common/mock.c +++ b/common/mock.c @@ -193,6 +193,7 @@ module_reset_objects (CK_SLOT_ID slot_id) the_objects = p11_dict_new (p11_dict_direct_hash, p11_dict_direct_equal, NULL, p11_attrs_free); + return_if_fail (the_objects != NULL); } p11_dict_clear (the_objects); |