Changeset 40816
- Timestamp:
- Jun 22, 2019, 3:32:40 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ohana.20190329/src/opihi/lib.shell/multicommand.c
r40776 r40816 63 63 64 64 p = line; 65 int Nline = strlen(line); 66 65 67 done = FALSE; 66 68 status = TRUE; … … 74 76 tmpline = strncreate (p, q - p); 75 77 stripwhite (tmpline); 78 myAssert (tmpline, "oops"); 76 79 77 80 // empty command, free and continue 78 81 if (*tmpline == 0) { 79 82 free (tmpline); 80 p = q + 1; 83 if (q == line + Nline) { 84 done = TRUE; 85 } else { 86 p = q + 1; 87 myAssert (p - line <= Nline, "oops"); 88 } 81 89 continue; 82 90 }
Note:
See TracChangeset
for help on using the changeset viewer.
