summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2011-11-11 11:13:42 -0800
committerJeremy Huddleston <jeremyhu@apple.com>2011-11-11 11:14:00 -0800
commitb7e88debd937be147d3581b9c8720c0bfe354052 (patch)
treead02cb81ef3c8912d20fb10eee7f1574b769fd06
parent33b5c9413463613d341d15184b34a4f4c4e70e56 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/geometry.c b/geometry.c
index 6d2ca7f..5e0e703 100644
--- a/geometry.c
+++ b/geometry.c
@@ -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;