[libglnx] fdio: Add missing return in tmpfile error case



commit 4fbd48fb88906b3eaa9de31c6c798c4f15ee05a4
Author: Colin Walters <walters verbum org>
Date:   Wed May 17 16:57:54 2017 -0400

    fdio: Add missing return in tmpfile error case
    
    Just noticed this while reading the code.

 glnx-fdio.c |    1 +
 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)
             {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]