From a07f893a5fd018e426e1aa6de7ad986ea8acd468 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 16 Apr 2016 23:20:11 +0200 Subject: Minor hashlib bugfix --- kernel/hashlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kernel') 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; } }; -- cgit v1.2.3