]> Git Repo - qemu.git/blobdiff - qemu-io-cmds.c
block: Use g_new() & friends where that makes obvious sense
[qemu.git] / qemu-io-cmds.c
index c503fc66aac3572a9b4db0686e2ad01d3c0c0a32..3a1e11e1eac641d4157bbc12b89ed2e7ac9cf4fd 100644 (file)
@@ -114,7 +114,7 @@ static char **breakline(char *input, int *count)
 {
     int c = 0;
     char *p;
-    char **rval = g_malloc0(sizeof(char *));
+    char **rval = g_new0(char *, 1);
     char **tmp;
 
     while (rval && (p = qemu_strsep(&input, " ")) != NULL) {
This page took 0.022927 seconds and 4 git commands to generate.