[xml-security-c] 10/21: TXFMOutputFile: close output file only if it's open
Ferenc Wágner
wferi-guest at moszumanska.debian.org
Mon Jun 27 12:20:25 UTC 2016
This is an automated email from the git hooks/post-receive script.
wferi-guest pushed a commit to branch patch-queue/warn-fixes
in repository xml-security-c.
commit 266580a97688a8a1123efcbdee8539e2796af3dd
Author: Ferenc Wágner <wferi at niif.hu>
Date: Sat Jan 30 23:40:38 2016 +0100
TXFMOutputFile: close output file only if it's open
---
xsec/transformers/TXFMOutputFile.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/xsec/transformers/TXFMOutputFile.cpp b/xsec/transformers/TXFMOutputFile.cpp
index 04542bd..f0c8681 100644
--- a/xsec/transformers/TXFMOutputFile.cpp
+++ b/xsec/transformers/TXFMOutputFile.cpp
@@ -36,10 +36,10 @@ XERCES_CPP_NAMESPACE_USE
TXFMOutputFile::~TXFMOutputFile() {
- if (f.is_open())
+ if (f.is_open()) {
f.write("\n----- END -----\n", 17);
f.close();
-
+ }
}
// Methods to set the inputs
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-shibboleth/xml-security-c.git
More information about the Pkg-shibboleth-devel
mailing list