From a07f893a5fd018e426e1aa6de7ad986ea8acd468 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 16 Apr 2016 23:20:11 +0200 Subject: [PATCH] Minor hashlib bugfix --- kernel/hashlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/hashlib.h b/kernel/hashlib.h index abdeefa13..2da53dd8a 100644 --- a/kernel/hashlib.h +++ b/kernel/hashlib.h @@ -156,7 +156,7 @@ struct hash_obj_ops { } template static inline unsigned int hash(const T *a) { - return a->hash(); + return a ? a->hash() : 0; } }; -- 2.30.2