]> granicus.if.org Git - p11-kit/commitdiff
common: Fix warning about dereferencing NULL pointer
authorPankaj <pankaj.s01@samsung.com>
Fri, 6 Nov 2015 05:48:00 +0000 (05:48 +0000)
committerStef Walter <stefw@redhat.com>
Mon, 9 Nov 2015 08:44:08 +0000 (09:44 +0100)
https://bugs.freedesktop.org/show_bug.cgi?id=92842

common/mock.c

index a73ae9dcdb4b3f0c83ee38f5b9099f0d6fd304df..ab223f82c8bfe7c11bd87da1021d02fb974a9e8f 100644 (file)
@@ -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);