From: Jonathan Rajotte Date: Tue, 25 Jul 2017 14:45:32 +0000 (-0400) Subject: Fix: report error using fd instead of ret X-Git-Tag: v2.8.8~9 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e48a0a898b2b472691f91f0bb670a3ec5fbd7566;p=lttng-tools.git Fix: report error using fd instead of ret Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/utils.c b/src/common/utils.c index 16d2f817a..aa11551c3 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -528,7 +528,7 @@ int utils_create_lock_file(const char *filepath) S_IRGRP | S_IWGRP); if (fd < 0) { PERROR("open lock file %s", filepath); - ret = -1; + fd = -1; goto error; }