X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fshm.c;fp=src%2Fbin%2Flttng-sessiond%2Fshm.c;h=b94f4eb6a7aae86aed5fc080689e3f755456c719;hb=0525e9ae15d215943d8187e7f190d5a45e723085;hp=584ae078f2d84fe07c32f4c8752850612908fc41;hpb=e7fe706f887aa4d753b102a610f802f7dd816655;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/shm.c b/src/bin/lttng-sessiond/shm.c index 584ae078f..b94f4eb6a 100644 --- a/src/bin/lttng-sessiond/shm.c +++ b/src/bin/lttng-sessiond/shm.c @@ -43,6 +43,8 @@ static int get_wait_shm(char *shm_path, size_t mmap_size, int global) int wait_shm_fd, ret; mode_t mode; + assert(shm_path); + /* Default permissions */ mode = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP; @@ -138,6 +140,8 @@ char *shm_ust_get_mmap(char *shm_path, int global) int wait_shm_fd, ret; char *wait_shm_mmap; + assert(shm_path); + wait_shm_fd = get_wait_shm(shm_path, mmap_size, global); if (wait_shm_fd < 0) { goto error;