Differences From Artifact [459adf8210]:
- File src/OFApplication.m — part of check-in [6d0a185364] at 2017-06-03 15:57:40 on branch trunk — -[OFApplication environment] for MorphOS + libnix (user: js, size: 13703) [annotate] [blame] [check-ins using]
To Artifact [cd6046dfba]:
- File
src/OFApplication.m
— part of check-in
[22b2e6ea8b]
at
2017-06-03 23:28:33
on branch trunk
— OFApplication: Fix MorphOS LocalVar list iteration
Double linked lists on MorphOS/AmigaOS have the last node point back to
the list head, so checking the successor for NULL is not correct, as
this will then include the list head which has no payload. (user: js, size: 13726) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
300 301 302 303 304 305 306 | objc_autoreleasePoolPop(pool2); } /* Local variables override global variables */ proc = (struct Process *)FindTask(NULL); firstLocalVar = (struct LocalVar *)proc->pr_LocalVars.mlh_Head; | | > | 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 | objc_autoreleasePoolPop(pool2); } /* Local variables override global variables */ proc = (struct Process *)FindTask(NULL); firstLocalVar = (struct LocalVar *)proc->pr_LocalVars.mlh_Head; for (struct LocalVar *iter = firstLocalVar; iter->lv_Node.ln_Succ != NULL; iter = (struct LocalVar *)iter->lv_Node.ln_Succ) { size_t length; OFString *key, *value; if (iter->lv_Node.ln_Type != LV_VAR || iter->lv_Flags & GVF_BINARY_VAR) continue; |
︙ | ︙ |