Overview
| Artifact ID: | 3a3cee6ee4ca76dda6dc1ec907c45a00d2cf4f4eca5a6fd9c9c408b272b80ee5 |
|---|---|
| Ticket: | 96551aca555c70e4e2157c534c8fdb11acf784e9
Avoid pointer arithmetic with NULL in FOREACH_STRUCT() |
| User & Date: | chrstphrchvz on 2023-05-08 13:37:17 |
Changes
- icomment:
Maybe something like this will work: <pre> #define FOREACH_STRUCT(var,ary) \ if (i=0, (ary).num>0) for(; var=&((ary).list[i]), i<(ary).num; i++) </pre> - login: "chrstphrchvz"
- mimetype: "text/x-fossil-wiki"