X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fmodprobe.c;h=b5b9d8cb793c2d6bbffc156d0ea8f6d314a4b0c7;hp=5fed97bf992061ee4efd78c148c41ce83fc4646d;hb=62e0422e48b9efd454c29c943ef4aefa6d49f242;hpb=e6421494d290d39f27e4fd596a574306b9faa514 diff --git a/src/bin/lttng-sessiond/modprobe.c b/src/bin/lttng-sessiond/modprobe.c index 5fed97bf9..b5b9d8cb7 100644 --- a/src/bin/lttng-sessiond/modprobe.c +++ b/src/bin/lttng-sessiond/modprobe.c @@ -352,10 +352,11 @@ static int append_list_to_probes(const char *list) { char *next; int index = nr_probes, ret; + char *tmp_list; assert(list); - char *tmp_list = strdup(list); + tmp_list = strdup(list); if (!tmp_list) { PERROR("strdup temp list"); return -ENOMEM; @@ -436,8 +437,8 @@ int modprobe_lttng_data(void) } else { /* Default probes. */ int def_len = ARRAY_SIZE(kern_modules_probes_default); - probes = zmalloc(sizeof(*probes) * def_len); + probes = zmalloc(sizeof(*probes) * def_len); if (!probes) { PERROR("malloc probe list"); return -ENOMEM;