actual_map is initialized at first, so almost never a SIGSEGV can happen.
authorviric@llimona
Sun, 07 May 2006 01:33:40 +0200
changeset 13 c2b272938a1f
parent 12 a2c334a71a6b
child 14 086a72472196
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.
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);