summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2017-05-17 16:57:54 -0400
committerColin Walters <walters@verbum.org>2017-05-17 16:57:54 -0400
commit4fbd48fb88906b3eaa9de31c6c798c4f15ee05a4 (patch)
treee11aac12b2330edd93ce48e724f8e4ddb3ba9e1d
parent9929adcd99d15dc4f5a925f9b7ec2318f646f1bf (diff)
downloadlibglnx-4fbd48fb88906b3eaa9de31c6c798c4f15ee05a4.tar.gz
fdio: Add missing return in tmpfile error case
Just noticed this while reading the code.
-rw-r--r--glnx-fdio.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/glnx-fdio.c b/glnx-fdio.c
index b8ed0a5..ac62a5e 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)
{