commit | 8c3968245a0d0f015dcc0fb6b39fbec42c608ea1 | [log] [tgz] |
---|---|---|
author | Doug Kwan <dougkwan@google.com> | Mon Aug 08 22:08:35 2011 -0700 |
committer | Doug Kwan <dougkwan@google.com> | Thu Oct 13 09:53:54 2011 -0700 |
tree | 03805668ba4893f93020c84ed4829dc56c826f8c | |
parent | f6ad682cfc4444f0d7d31613d9fe76d8f05a3fa4 [diff] |
Fix undefined behaviour in C. This patch uses offsetof() macro defined in the C specs instead of using a macro which dereferences a null pointer. The offsetof() macro is available since C89. Change-Id: I62b9b1d726dd0c3a956bdc4ae4cdd5db3dc55040