X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fblue.c;h=dac0c761618f8fb2cd5f68c39e86cace1d0d5496;hp=0f15d01dce81958668ec971753a0760b697dbe94;hb=8f527f87c0b979d9c2598ef5c3394463af288468;hpb=4c309ad3b124eff80aa6b54018b5cc9f1e3d116d diff --git a/test/blue.c b/test/blue.c index 0f15d01d..dac0c761 100644 --- a/test/blue.c +++ b/test/blue.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1998-2005,2006 Free Software Foundation, Inc. * + * Copyright (c) 1998-2006,2008 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -40,7 +40,7 @@ * results, use the ncurses(3) library. On non-Intel machines, SVr4 curses is * just as good. * - * $Id: blue.c,v 1.29 2006/05/20 15:38:18 tom Exp $ + * $Id: blue.c,v 1.30 2008/08/03 18:20:27 tom Exp $ */ #include @@ -173,6 +173,7 @@ deal_cards(void) { int ptr, card = 0, value, csuit, crank, suit, aces[4]; + memset(aces, 0, sizeof(aces)); for (suit = HEARTS; suit <= CLUBS; suit++) { ptr = freeptr[suit]; grid[ptr++] = NOCARD; /* 1st card space is blank */