X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fcommon%2Futils.c;h=aa11551c30635fd4e423382092fd1871a2534b17;hb=85a7f3f9bfad89d2370db922f5066068ec3d56f4;hp=16d2f817ad8a1b21d99228a67e5bba25e0d1f3fa;hpb=6d1bce6b7fb162bcd0bedafc8a8926bdd1222e53;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; }