diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2011-11-11 11:13:42 -0800 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2011-11-11 11:14:00 -0800 |
commit | b7e88debd937be147d3581b9c8720c0bfe354052 (patch) | |
tree | ad02cb81ef3c8912d20fb10eee7f1574b769fd06 | |
parent | 33b5c9413463613d341d15184b34a4f4c4e70e56 (diff) |
Correct our zeroing out of the row in InitRowInfo
geometry.c:369:20: warning: argument to 'sizeof' in '__builtin___memset_chk' call is the same
pointer type 'RowInfo *' (aka 'struct _RowInfo *') as the destination; expected 'RowInfo'
(aka 'struct _RowInfo') or an explicit length [-Wsizeof-pointer-memaccess]
bzero(row, sizeof(RowInfo *));
~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r-- | geometry.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -366,7 +366,7 @@ InitRowInfo(RowInfo * row, SectionInfo * section, GeometryInfo * info) } else { - bzero(row, sizeof(RowInfo *)); + bzero(row, sizeof(*row)); row->defs.defined = _GR_Default; row->defs.fileID = info->fileID; row->defs.merge = info->merge; |