File gnushogi-1.3-uninitialized.patch of Package gnushogi

--- gnushogi/genmove.c
+++ gnushogi/genmove.c
@@ -896,7 +896,7 @@
         /* Pawn drops are invalid if they mate the opponent. */
         if (possible)
         {
-            short f, tempb, tempc;
+            short f, tempb=0, tempc=0;
             f = pawn + NO_SQUARES;
 
             if (side == white)
--- gnushogi/makepattern.c
+++ gnushogi/makepattern.c
@@ -147,7 +147,7 @@
 static short
 ScanPattern (char *s, short *pindex)
 {
-    small_short side, piece, square;
+    small_short side=0, piece=0, square=0;
     skipbb(&s); /* skip blanks and comments */
 
     while (is_digit(*s))
openSUSE Build Service is sponsored by