[Rawstudio-commit] r3170 - trunk/src

Anders Kvist anders at kvistmail.dk
Tue Feb 9 23:18:31 CET 2010


Author: akv
Date: 2010-02-09 23:18:31 +0100 (Tue, 09 Feb 2010)
New Revision: 3170

Modified:
   trunk/src/rs-library.c
Log:
Bail out of tag restore if xmlParseFile doesn't return a doc.

Modified: trunk/src/rs-library.c
===================================================================
--- trunk/src/rs-library.c	2010-02-08 21:29:05 UTC (rev 3169)
+++ trunk/src/rs-library.c	2010-02-09 22:18:31 UTC (rev 3170)
@@ -1161,6 +1161,9 @@
 	gint autotag, photoid, tagid;
 
 	doc = xmlParseFile(tagfile);
+	if (!doc)
+		return;
+
 	cur = xmlDocGetRootElement(doc);
 
 	if ((!xmlStrcmp(cur->name, BAD_CAST "rawstudio-tags")))




More information about the Rawstudio-commit mailing list