Changeset 26371
- Timestamp:
- Dec 8, 2009, 7:01:33 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/lib.shell/ListOps.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/lib.shell/ListOps.c
r25965 r26371 3 3 4 4 /*** local static variables used to track the command lists ***/ 5 static List *lists ;/* variable to store the list of all lists */6 static int Nlists ;/* number of currently available lists */5 static List *lists = NULL; /* variable to store the list of all lists */ 6 static int Nlists = 0; /* number of currently available lists */ 7 7 8 8 void InitLists () { … … 16 16 int i, j; 17 17 18 for (i = 0; i < Nlists; i++) { 18 // Nlists is a bit weird: it is the currently highest valid list, not the number of lists 19 // Nlists = 0 is never allocated 20 for (i = 1; i < Nlists + 1; i++) { 19 21 for (j = 0; j < lists[i].Nlines; j++) { 20 22 free (lists[i].line[j]);
Note:
See TracChangeset
for help on using the changeset viewer.
