Parcourir la source

ncd: NCDValue: add missing assertion

ambrop7 il y a 14 ans
Parent
commit
e9c827e297
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      ncd/NCDValue.c

+ 1 - 0
ncd/NCDValue.c

@@ -473,6 +473,7 @@ NCDValue * NCDValue_MapFindKey (NCDValue *o, NCDValue *key)
 {
 {
     value_assert(o);
     value_assert(o);
     ASSERT(o->type == NCDVALUE_MAP)
     ASSERT(o->type == NCDVALUE_MAP)
+    value_assert(key);
     
     
     BAVLNode *tn = BAVL_LookupExact(&o->map_tree, key);
     BAVLNode *tn = BAVL_LookupExact(&o->map_tree, key);
     if (!tn) {
     if (!tn) {