From: Marco Costalba Date: Tue, 1 Jun 2010 06:36:30 +0000 (+0100) Subject: Don't init SplitPointStack[i][j].parent X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=05c5f08372f2ba6e28eec0c3d66fbb4f27e853b1 Don't init SplitPointStack[i][j].parent It is already set to zero because is allocated in the global storage area. No functional change. Signed-off-by: Marco Costalba --- diff --git a/src/search.cpp b/src/search.cpp index 02e171b7..f5e3b2bb 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -2480,10 +2480,7 @@ namespace { // Initialize SplitPointStack locks for (i = 0; i < MAX_THREADS; i++) for (int j = 0; j < ACTIVE_SPLIT_POINTS_MAX; j++) - { - SplitPointStack[i][j].parent = NULL; lock_init(&(SplitPointStack[i][j].lock), NULL); - } // Will be set just before program exits to properly end the threads AllThreadsShouldExit = false;