Fix wrong variable name preventing saving to filename

Wed, 04 Nov 2009 03:22:42 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Wed, 04 Nov 2009 03:22:42 +0000
changeset 3
7f619444bc2a
parent 2
475bf0c54822
child 4
caf89bc9100a

Fix wrong variable name preventing saving to filename

xpm.lua file | annotate | diff | comparison | revisions
--- a/xpm.lua	Wed Nov 04 02:18:39 2009 +0000
+++ b/xpm.lua	Wed Nov 04 03:22:42 2009 +0000
@@ -29,7 +29,7 @@
 function render(xpm, f)
 	local err;
 	if type(f) == "string" then
-		f = io.open(out, "w+");
+		f = io.open(f, "w+");
 	end
 	if io.type(f) ~= "file" then
 		error("No valid output file", 2);

mercurial