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.9.6~9 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=85a7f3f9bfad89d2370db922f5066068ec3d56f4;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; }