libxc: Avoid a constant-zero-sized memset().

Some environments warn about this, which fails the build.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
Keir Fraser committed 2009-08-31 10:14:26 +01:00
1 parent bf6b9756fa
commit bc05036624
1 file changed
+2 -1
+2 -1
View File
@@ -321,7 +321,8 @@ elfnote_dump_none(void *args, dumpcore_rtn_t dump_rtn)
struct xen_dumpcore_elfnote_none_desc none;
elfnote_init(&elfnote);
memset(&none, 0, sizeof(none));
/* Avoid compile warning about constant-zero-sized memset(). */
/*memset(&none, 0, sizeof(none));*/
elfnote.descsz = sizeof(none);
elfnote.type = XEN_ELFNOTE_DUMPCORE_NONE;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.