summaryrefslogtreecommitdiff
path: root/common/mock.c
diff options
context:
space:
mode:
authorPankaj <pankaj.s01@samsung.com>2015-11-06 05:48:00 +0000
committerStef Walter <stefw@redhat.com>2015-11-09 09:44:08 +0100
commit957c6d8c610b71665573564f2299d9aca86d2483 (patch)
tree98a190c7d78d627c80335b73cfe481a9d575a42f /common/mock.c
parent4e22ebfda7b51ec978eacf0c3653bb534de97fe3 (diff)
downloadp11-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.c1
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);