Commits

Anonymous committed 10cfaa8

Modified the assertion to fix a crash.

The crash only happened in release mode.

Comments (0)

Files changed (1)

black-hole-solitaire/c-solver/fcs_hash.c

 #define PLACE() (hash_value & (hash->size_bitmask))
     list = (hash->entries + PLACE());
 
-    assert(item = list->first_item);
+    item = list->first_item;
+
+    assert(item != NULL);
 
     result->key = key_ptr->key;