From: Pankaj Date: Fri, 6 Nov 2015 05:48:00 +0000 (+0000) Subject: common: Fix warning about dereferencing NULL pointer X-Git-Tag: 0.23.2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=957c6d8c610b71665573564f2299d9aca86d2483;p=p11-kit common: Fix warning about dereferencing NULL pointer https://bugs.freedesktop.org/show_bug.cgi?id=92842 --- 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);