[xml-security-c] 09/23: TXFMOutputFile: close output file only if it's open

Ferenc Wágner wferi-guest at moszumanska.debian.org
Thu Jul 21 20:15:42 UTC 2016


This is an automated email from the git hooks/post-receive script.

wferi-guest pushed a commit to branch patch-queue/master
in repository xml-security-c.

commit 82df2583be09a29dd49bea57b151ab9e0b5ffa4f
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