qemu-trivial
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-trivial] [PATCH] sparc: Use g_memdup() instead of g_new0() + m


From: Michael Tokarev
Subject: Re: [Qemu-trivial] [PATCH] sparc: Use g_memdup() instead of g_new0() + memcpy()
Date: Tue, 26 Jul 2016 15:32:28 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.1.0

16.06.2016 20:33, Thomas Huth wrote:
> There is no need to make sure that the memory is zeroed after the
> allocation if we also immediatly fill the whole buffer afterwards
> with memcpy(). Thus g_new0 should be g_new instead. But since we
> are also doing a memcpy() here, we can also simply replace both
> with g_memdup() instead.

Applied to -trivial, thanks!

/mjt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]