]> Git Repo - qemu.git/commit
linux-user/syscall: Replace g_malloc0 + memcpy with g_memdup
authorThomas Huth <[email protected]>
Fri, 9 Oct 2015 15:56:38 +0000 (17:56 +0200)
committerMichael Tokarev <[email protected]>
Fri, 6 Nov 2015 12:42:38 +0000 (15:42 +0300)
commite9d49d518d5d2b0411ee2625e46662a6065a909c
tree99cc1825086ba0fbe7c373d71a30bb9bebd8f223
parent112317867d573bb053d431f098060cf996d9b2e8
linux-user/syscall: Replace g_malloc0 + memcpy with g_memdup

No need to use g_malloc0 to zero the memory if we memcpy to
the whole buffer afterwards anyway. Actually, there is even
a function which combines both steps, g_memdup, so let's use
this function here instead.

Signed-off-by: Thomas Huth <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
linux-user/syscall.c
This page took 0.025942 seconds and 4 git commands to generate.