X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Futils.c;h=17a313ee16f66efe8c574ddfddc8f94f156b9e11;hp=b0e5b63e34400c3f0e2e2df57b58fcdf0f875f32;hb=cec6b2a556f6880230c326b07facbc3f673ee0c7;hpb=4da7eebd95e606d5612fe05a339ade00fda54b86 diff --git a/src/common/utils.c b/src/common/utils.c index b0e5b63e3..17a313ee1 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -379,6 +379,9 @@ char *_utils_expand_path(const char *path, bool keep_symlink) /* Resolve partially our path */ absolute_path = utils_partial_realpath(absolute_path, absolute_path, LTTNG_PATH_MAX); + if (!absolute_path) { + goto error; + } } ret = expand_double_slashes_dot_and_dotdot(absolute_path);