Diff

util/datamanager.lua @ 7201:7a8cffafeff0

Merge 0.9->0.10
author Kim Alvefur <zash@zash.se>
date Thu, 25 Feb 2016 22:37:41 +0100
parent 7002:9ab0d5e69c41
parent 7200:67ac4a0b6e50
child 7202:5bf0ff3882aa
line wrap: on
line diff
--- a/util/datamanager.lua	Thu Feb 25 22:33:58 2016 +0100
+++ b/util/datamanager.lua	Thu Feb 25 22:37:41 2016 +0100
@@ -152,6 +152,7 @@
 		if not ok then break end
 
 		ok, msg = f:close();
+		f = nil; -- no longer valid
 		if not ok then break end
 
 		return os_rename(scratch, filename);