[sword-svn] r3213 - trunk/utilities

scribe at crosswire.org scribe at crosswire.org
Wed Apr 30 22:12:42 MST 2014


Author: scribe
Date: 2014-04-30 22:12:42 -0700 (Wed, 30 Apr 2014)
New Revision: 3213

Modified:
   trunk/utilities/imp2ld.cpp
Log:
improvements

Modified: trunk/utilities/imp2ld.cpp
===================================================================
--- trunk/utilities/imp2ld.cpp	2014-05-01 05:12:28 UTC (rev 3212)
+++ trunk/utilities/imp2ld.cpp	2014-05-01 05:12:42 UTC (rev 3213)
@@ -150,6 +150,10 @@
 
 	std::ifstream infile(inFileName);
 
+	if(!infile.is_open()) {
+		std::cout << "Unable to open file " << inFileName << std::endl;
+		return -1;
+	}
 
 	SWModule *mod = 0;
 	SWKey *key, *linkKey;
@@ -275,7 +279,6 @@
 	infile.close();
 
 	delete linkKey;
-	delete key;
 	delete mod;
 
 	return 0;




More information about the sword-cvs mailing list