summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/uri.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/util/uri.c b/util/uri.c
index 01dc09effb..918d23516d 100644
--- 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);
}