X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Futils.c;h=0eb7ab4fe410e561909e0fb0372fb8b5b5bfa96e;hb=e6576ba27734c57aa6bb69201e740475c049265b;hp=893122905bd44ca75b9fa3836cdf9098e142dfff;hpb=db0f7697361017ef0d00b2faf322b131b138fca5;p=lttng-tools.git 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; }