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.11.0-rc1~495 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=e6576ba27734c57aa6bb69201e740475c049265b 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 893122905..0eb7ab4fe 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; }