]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - test/knight.c
ncurses 5.9 - patch 20130202
[ncurses.git] / test / knight.c
index 91c1ba36bbb805d5523e42376b16e10a624331c5..b1215fcc9d954bda9df593e87d437dcbc970147e 100644 (file)
@@ -33,7 +33,7 @@
  * Eric S. Raymond <esr@snark.thyrsus.com> July 22 1995.  Mouse support
  * added September 20th 1995.
  *
- * $Id: knight.c,v 1.34 2013/01/13 00:40:33 tom Exp $
+ * $Id: knight.c,v 1.35 2013/02/03 00:16:59 tom Exp $
  */
 
 #include <test.priv.h>
@@ -306,7 +306,7 @@ find_next_move(int *y, int *x)
     unsigned j, k;
     int found = -1;
     int first = -1;
-    int next = 0;
+    int next = -1;
     int oldy, oldx;
     int newy, newx;
     bool result = FALSE;