diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/hashlib.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<typename T> static inline unsigned int hash(const T *a) { - return a->hash(); + return a ? a->hash() : 0; } }; |