diff options
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/tools-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/tools-common.c b/src/tools/tools-common.c index 0bb666f..b80ae3c 100644 --- a/src/tools/tools-common.c +++ b/src/tools/tools-common.c @@ -56,7 +56,7 @@ int parse_cgroup_spec(struct cgroup_group_spec *cdptr[], char *optarg) return -1; /* instanciate cgroup_data. */ - cdptr[i] = malloc(sizeof(struct cgroup_group_spec)); + cdptr[i] = calloc(1, sizeof(struct cgroup_group_spec)); if (!cdptr[i]) { fprintf(stderr, "%s\n", strerror(errno)); return -1; |