X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Futils.c;h=aa11551c30635fd4e423382092fd1871a2534b17;hb=e48a0a898b2b472691f91f0bb670a3ec5fbd7566;hp=16d2f817ad8a1b21d99228a67e5bba25e0d1f3fa;hpb=1ceb91a3b19cda8986b17c60fd4d8d214e82bd57;p=lttng-tools.git 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; }