]> code.ossystems Code Review - openembedded-core.git/commit
elfutils: fix the num passed to memset in ar.c
authorZhenhua Luo <zhenhua.luo@freescale.com>
Fri, 15 Mar 2013 13:27:27 +0000 (21:27 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 16 Mar 2013 17:15:56 +0000 (17:15 +0000)
commit5cc3b4fe09cfa2b3e67568a9c2494c198a5292af
treeaf2130d4299f9feb12ba17f9b23416a6e896bec2
parentd2e7d98ce859a3af037135d1ac7bdb7a34f4d319
elfutils: fix the num passed to memset in ar.c

Following build error will appear on Fedora18+:
ar.c: In function 'do_oper_delete':
ar.c:918:31: error: argument to 'sizeof' in 'memset' call is the same expression as the destination; did you mean to dereference it? [-Werror=sizeof-pointer-memaccess]
   memset (found, '\0', sizeof (found));

Signed-off-by: Zhenhua Luo <zhenhua.luo@freescale.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/elfutils/elfutils/elfutils-ar-c-fix-num-passed-to-memset.patch [new file with mode: 0644]
meta/recipes-devtools/elfutils/elfutils_0.148.bb