From b7e88debd937be147d3581b9c8720c0bfe354052 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Fri, 11 Nov 2011 11:13:42 -0800 Subject: 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 --- geometry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3