utils_rrdcreate.c: fix minor style issue
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 15 Dec 2018 18:20:43 +0000 (19:20 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 15 Dec 2018 18:40:14 +0000 (19:40 +0100)
src/utils_rrdcreate.c

index 8f92cfd..7f1f235 100644 (file)
@@ -111,7 +111,7 @@ static srrd_create_args_t *srrd_create_args_create(const char *filename,
     return NULL;
   }
 
-  args->argv = calloc((size_t)(argc + 1), sizeof(*args->argv));
+  args->argv = calloc(argc + 1, sizeof(*args->argv));
   if (args->argv == NULL) {
     P_ERROR("srrd_create_args_create: calloc failed.");
     srrd_create_args_destroy(args);