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.10.0~40 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=56e2c1c2177adb2068e371595c16059fa7fb342c;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 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; }