summaryrefslogtreecommitdiffstats
authorDon Pellegrino <don@drexel.edu>2009-07-09 18:51:38 (GMT)
committer Don Pellegrino <don@drexel.edu>2009-07-09 18:51:38 (GMT)
commitc324d26c18be3f683ce3081ef770293271bd5065 (patch) (side-by-side diff)
treeacb411fe5a65cec8697a294082677ae629ed0d2c
parent9b7d64ada1d9c7ebd7d926efb446c613ebe24072 (diff)
downloadexp005-c324d26c18be3f683ce3081ef770293271bd5065.zip
exp005-c324d26c18be3f683ce3081ef770293271bd5065.tar.gz
exp005-c324d26c18be3f683ce3081ef770293271bd5065.tar.bz2
Initialized the set of selected items to none on startup.
-rw-r--r--src/model/selection_info_init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/model/selection_info_init.c b/src/model/selection_info_init.c
index 7a98e74..aea2b07 100644
--- a/src/model/selection_info_init.c
+++ b/src/model/selection_info_init.c
@@ -1,8 +1,10 @@
#include "selection_info_init.h"
+#include <string.h>
void
selection_info_init (SELECTION_INFO * s)
-{
+{
+ memset (s->set, 0, sizeof (bool) * ROWS);
s->active = false;
s->purpose = SET;
s->x = 0;

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.