Ver Fonte

ncd: NCDValue: add missing assertion

ambrop7 há 14 anos atrás
pai
commit
e9c827e297
1 ficheiros alterados com 1 adições e 0 exclusões
  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);
     ASSERT(o->type == NCDVALUE_MAP)
+    value_assert(key);
     
     BAVLNode *tn = BAVL_LookupExact(&o->map_tree, key);
     if (!tn) {