Overview
| Artifact ID: | c1e98215b17d6b1c232fd5d40bab01038ed63a94448c900fa0fc6b47e0359f51 |
|---|---|
| Ticket: | 96551aca555c70e4e2157c534c8fdb11acf784e9
Avoid pointer arithmetic with NULL in FOREACH_STRUCT() |
| User & Date: | chrstphrchvz on 2023-05-08 13:12:39 |
Changes
- icomment:
I do think [0a39ff278486] is better than my initial suggestion (as long as others understand it and are not tempted to undo it), however it looks like there is dependency on the (undocumented) side effect of the macro leaving <tt>i == ((ary).num < 0 ? 0 : (ary).num)</tt> in <tt>InstallPrivateVariableMapping()</tt> (tclOODefineCmds.c:552), <tt>TclOOReleaseClassContents()</tt> (tclOO.c:1089), and <tt>ObjectNamespaceDeleted()</tt> (tclOO.c:1252),
- login: "chrstphrchvz"
- mimetype: "text/x-fossil-wiki"