Browse Source

src/core/disk_ops/disk_stdio.c: fix malloc call

Nathalie Furmento 12 years ago
parent
commit
dbb260b352
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/disk_ops/disk_stdio.c

+ 1 - 1
src/core/disk_ops/disk_stdio.c

@@ -308,7 +308,7 @@ static int get_stdio_bandwidth_between_disk_and_main_ram(unsigned node)
 	/* free memory */
 	/* free memory */
 	free(buf);
 	free(buf);
 
 
-	buf = malloc(1, sizeof(char));
+	buf = malloc(sizeof(char));
 	STARPU_ASSERT(buf != NULL);
 	STARPU_ASSERT(buf != NULL);
 
 
 	*buf = 0;
 	*buf = 0;