mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
util: Fuse g_malloc(); memset() into g_new0()
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Fam Zheng <famz@redhat.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
This commit is contained in:
committed by
Michael Tokarev
parent
44c2286b5d
commit
9be71be5bd
+1
-2
@@ -1004,8 +1004,7 @@ URI *
|
||||
uri_new(void) {
|
||||
URI *ret;
|
||||
|
||||
ret = (URI *) g_malloc(sizeof(URI));
|
||||
memset(ret, 0, sizeof(URI));
|
||||
ret = g_new0(URI, 1);
|
||||
return(ret);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user