}
/* Allocate URI array */
- tmp_uris = (lttng_uri *) zmalloc(sizeof(struct lttng_uri) * size);
+ tmp_uris = calloc<lttng_uri>(size);
if (tmp_uris == NULL) {
PERROR("zmalloc uri");
goto error;
goto error;
}
- tmp_uris = (lttng_uri *) zmalloc(sizeof(struct lttng_uri) * uri_count);
+ tmp_uris = calloc<lttng_uri>(uri_count);
if (tmp_uris == NULL) {
PERROR("zmalloc uris");
goto error;