# HG changeset patch # User viric@llimona # Date 1146958420 -7200 # Node ID c2b272938a1fcdf065fc146a6a008a3b9bc63421 # Parent a2c334a71a6b1fae43c23f8427d628f4cd15cd92 actual_map is initialized at first, so almost never a SIGSEGV can happen. Even though it should be initialized at init_so, and protecting against SIGSEGV there. diff -r a2c334a71a6b -r c2b272938a1f algorithm.c --- a/algorithm.c Sun May 07 01:31:50 2006 +0200 +++ b/algorithm.c Sun May 07 01:33:40 2006 +0200 @@ -605,6 +605,9 @@ CopyMap(&maps[0], &origin); fill_deps(&maps[0]); + /* Initializing actual_map here AT LEAST gives protection against + SIGSEGV */ + actual_map = &maps[0]; assert(!are_there_fixed_boxes(&maps[0], new_movements, &num_new_movements)); search_did_found(maps, 0, new_movements, num_new_movements, 100, 0);