X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fknight.c;fp=test%2Fknight.c;h=b1215fcc9d954bda9df593e87d437dcbc970147e;hp=91c1ba36bbb805d5523e42376b16e10a624331c5;hb=eee1237c858e39ddc0970dfc5a44d0ec76e2d9e4;hpb=2403eaecbe5b488358485a3deb351ab552af8791 diff --git a/test/knight.c b/test/knight.c index 91c1ba36..b1215fcc 100644 --- a/test/knight.c +++ b/test/knight.c @@ -33,7 +33,7 @@ * Eric S. Raymond 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 @@ -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;