File: segtb.c.patch

package info (click to toggle)
sjeng 11.2-15
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,436 kB
  • sloc: ansic: 13,378; sh: 324; makefile: 29
file content (19 lines) | stat: -rw-r--r-- 504 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Author: Lukas Geyer <lukas@debian.org>
Description: General code cleanup.

--- sjeng-11.2.orig/segtb.c
+++ sjeng-11.2/segtb.c
@@ -742,10 +742,10 @@
 
 int egtb(int s)
 {
-  int w1_man, w2_man, b1_man, b2_man;
-  int w1, w2, b1, b2;
+  int w1_man = 0, w2_man = 0, b1_man = 0, b2_man = 0;
+  int w1 = 0, w2 = 0, b1 = 0, b2 = 0;
   int w_count = 0, b_count = 0;
-  int i, t, temp, junk, bpc;
+  int i, t, temp, junk = 0, bpc;
   signed char *table;
 
   /* first figure out what kind of position we have */