[geany/geany] e68668: Don't set error twice (oops)
Colomban Wendling
git-noreply at xxxxx
Sun Feb 5 18:46:59 UTC 2012
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Sun, 05 Feb 2012 18:46:59
Commit: e6866813853886ac577fdaa1c1cfbf16fef66033
https://github.com/geany/geany/commit/e6866813853886ac577fdaa1c1cfbf16fef66033
Log Message:
-----------
Don't set error twice (oops)
Modified Paths:
--------------
src/build.c
Modified: src/build.c
3 files changed, 2 insertions(+), 1 deletions(-)
===================================================================
@@ -1222,7 +1222,8 @@ static gboolean build_create_shellscript(const gchar *fname, const gchar *cmd, g
if (fclose(fp) != 0)
{
- set_file_error_from_errno(error, errno, "Failed to close file");
+ if (error && ! *error) /* don't set error twice */
+ set_file_error_from_errno(error, errno, "Failed to close file");
success = FALSE;
}
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
More information about the Commits
mailing list