From 4fbd48fb88906b3eaa9de31c6c798c4f15ee05a4 Mon Sep 17 00:00:00 2001 From: Colin Walters <walters@verbum.org> Date: Wed, 17 May 2017 16:57:54 -0400 Subject: [PATCH] fdio: Add missing return in tmpfile error case Just noticed this while reading the code. --- glnx-fdio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/glnx-fdio.c b/glnx-fdio.c index b8ed0a593..ac62a5eed 100644 --- a/glnx-fdio.c +++ b/glnx-fdio.c @@ -314,6 +314,7 @@ glnx_link_tmpfile_at (GLnxTmpfile *tmpf, { g_set_error (error, G_IO_ERROR, G_IO_ERROR_EXISTS, "Exhausted %u attempts to create temporary file", count); + return FALSE; } if (renameat (target_dfd, tmpname_buf, target_dfd, target) < 0) { -- GitLab