[geany/geany] 6e89ee: Check for fclose() success

Jiří Techet git-noreply at xxxxx
Fri Jun 10 21:57:36 UTC 2016


Branch:      refs/heads/master
Author:      Jiří Techet <techet at gmail.com>
Committer:   Jiří Techet <techet at gmail.com>
Date:        Fri, 06 May 2016 20:00:14 UTC
Commit:      6e89ee5ebef888e5d07407d33ffb4d455831e752
             https://github.com/geany/geany/commit/6e89ee5ebef888e5d07407d33ffb4d455831e752

Log Message:
-----------
Check for fclose() success


Modified Paths:
--------------
    tagmanager/src/tm_workspace.c

Modified: tagmanager/src/tm_workspace.c
8 lines changed, 2 insertions(+), 6 deletions(-)
===================================================================
@@ -415,9 +415,7 @@ static gboolean write_includes_file(const gchar *outf, GList *includes_files)
 		node = g_list_next(node);
 	}
 
-	fclose(fp);
-
-	return TRUE;
+	return fclose(fp) == 0;
 }
 
 
@@ -450,9 +448,7 @@ static gboolean combine_include_files(const gchar *outf, GList *file_list)
 		node = g_list_next (node);
 	}
 
-	fclose(fp);
-
-	return TRUE;
+	return fclose(fp) == 0;
 }
 
 



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list