From 957c6d8c610b71665573564f2299d9aca86d2483 Mon Sep 17 00:00:00 2001 From: Pankaj Date: Fri, 6 Nov 2015 05:48:00 +0000 Subject: common: Fix warning about dereferencing NULL pointer https://bugs.freedesktop.org/show_bug.cgi?id=92842 --- common/mock.c | 1 + 1 file changed, 1 insertion(+) (limited to 'common') 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); -- cgit v1.1