summaryrefslogtreecommitdiff
path: root/tests/test-proc-info.c
diff options
context:
space:
mode:
authorArun <asharma@fb.com>2011-10-02 22:43:28 -0700
committerArun <asharma@fb.com>2011-10-02 22:43:28 -0700
commitf89fb17695e8137a5f4e23570bf9f53374186c96 (patch)
tree3d5e410758f0d0e3c3396fd5685d93128ef947d7 /tests/test-proc-info.c
parent962366dace4fed902ad5e89df1b34c13c3224b8b (diff)
downloadlibunwind-f89fb17695e8137a5f4e23570bf9f53374186c96.tar.gz
Fix incorrect calls to memset.
Found when compiling libunwind with clang. Signed-off-by: Paul Pluzhnikov <ppluzhnikov@google.com>
Diffstat (limited to 'tests/test-proc-info.c')
-rw-r--r--tests/test-proc-info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-proc-info.c b/tests/test-proc-info.c
index 9e039c6f..e8915fb3 100644
--- a/tests/test-proc-info.c
+++ b/tests/test-proc-info.c
@@ -72,7 +72,7 @@ access_fpreg (unw_addr_space_t as, unw_regnum_t regnum, unw_fpreg_t *valp,
int write, void *arg)
{
if (!write)
- memset (valp, 0, sizeof (valp));
+ memset (valp, 0, sizeof (*valp));
return 0;
}