Changeset 3449 in kBuild for trunk/src/kash/parser.c
- Timestamp:
- Sep 13, 2020 11:17:09 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/parser.c
r3440 r3449 1199 1199 union node *np; 1200 1200 char fd = *out; 1201 char dummy[ sizeof(struct n file) >= sizeof(struct ndup)1202 && sizeof(struct n file) >= sizeof(struct nhere) ? 1 : 0];1201 char dummy[ sizeof(struct ndup) >= sizeof(struct nfile) 1202 && sizeof(struct ndup) >= sizeof(struct nhere) ? 1 : 0]; 1203 1203 (void)dummy; 1204 1204 1205 np = (union node *)stalloc(psh, sizeof (struct nfile)); 1206 np->nfile.expfname = NULL; 1205 np = (union node *)stalloc(psh, sizeof (struct ndup)); 1207 1206 if (c == '>') { 1208 1207 np->nfile.fd = 1; … … 1899 1898 ret->nfile.next = copyparsetree(psh, src->nfile.next); 1900 1899 ret->nfile.fname = copyparsetree(psh, src->nfile.fname); 1901 /** @todo complicated, we should copy it in some contexts but no all. sigh. */1902 ret->nfile.expfname = stsavestr(psh, src->nfile.expfname);1903 1900 break; 1904 1901
Note:
See TracChangeset
for help on using the changeset viewer.