mod_storage_xmlarchive: The last :seek() should return something truish, if not, don't ignore
authorKim Alvefur <zash@zash.se>
Mon, 18 May 2015 02:33:43 +0200
changeset 1742 b3f048af2dfe
parent 1741 2ee9725c7fc6
child 1743 940a4ab75cec
mod_storage_xmlarchive: The last :seek() should return something truish, if not, don't ignore
mod_storage_xmlarchive/mod_storage_xmlarchive.lua
--- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Sun May 17 17:17:26 2015 +0200
+++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Mon May 18 02:33:43 2015 +0200
@@ -12,8 +12,7 @@
 	if not ok then
 		return ok, msg;
 	end
-	f:seek("set", offset);
-	return true;
+	return f:seek("set", offset);
 end;
 pcall(function()
 	local pposix = require "util.pposix";