OSDN Git Service
(root)
/
qmiga
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44c2286
)
util: Fuse g_malloc(); memset() into g_new0()
author
Markus Armbruster
<armbru@redhat.com>
Thu, 4 Dec 2014 14:00:02 +0000
(15:00 +0100)
committer
Michael Tokarev
<mjt@tls.msk.ru>
Wed, 10 Dec 2014 08:33:38 +0000
(11:33 +0300)
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>
util/uri.c
patch
|
blob
|
history
diff --git
a/util/uri.c
b/util/uri.c
index
01dc09e
..
918d235
100644
(file)
--- a/
util/uri.c
+++ b/
util/uri.c
@@
-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);
}