X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fdemo_panels.c;h=f9af6cc7bbe2abde79ebc81330e04d286cdcf8c6;hp=55593c03bc20b041c3c761722e03b44e8e8055b2;hb=d49a800c7f54c8d9e77f745423c821a8535ada59;hpb=677412a37f53a465b9b127843d4aa070077659e8 diff --git a/test/demo_panels.c b/test/demo_panels.c index 55593c03..f9af6cc7 100644 --- a/test/demo_panels.c +++ b/test/demo_panels.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 2007,2008 Free Software Foundation, Inc. * + * Copyright (c) 2007-2008,2010 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 * @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: demo_panels.c,v 1.33 2008/08/04 13:33:48 tom Exp $ + * $Id: demo_panels.c,v 1.34 2010/03/06 18:14:04 tom Exp $ * * Demonstrate a variety of functions from the panel library. */ @@ -494,6 +494,7 @@ show_panels(PANEL * px[MAX_PANELS + 1]) PANEL *pan; int j; + memset(table, 0, sizeof(table)); for (j = 1; j <= MAX_PANELS; ++j) { table[j].valid = (px[j] != 0); if (table[j].valid) {