diff options
author | Thomas Huth <thuth@redhat.com> | 2016-06-16 19:33:38 +0200 |
---|---|---|
committer | Michael Tokarev <mjt@gandalf> | 2016-09-13 18:12:34 +0300 |
commit | a337f295defad7eb977da4d6317cf70f7f2fa4b4 (patch) | |
tree | 33f32e3efdc0b5d443df881e0c2eec9d68b23ee5 /ui | |
parent | bc82585a8fd5d38e7c2402999a7ccc9a97d762c9 (diff) | |
download | qemu-a337f295defad7eb977da4d6317cf70f7f2fa4b4.zip qemu-a337f295defad7eb977da4d6317cf70f7f2fa4b4.tar.gz qemu-a337f295defad7eb977da4d6317cf70f7f2fa4b4.tar.bz2 |
sparc: Use g_memdup() instead of g_new0() + memcpy()
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.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Acked-By: Artyom Tarasenko <atar4qemu@gmail.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'ui')
0 files changed, 0 insertions, 0 deletions