shithub: mc

Download patch

ref: a07d0b460f549358fa520bebb3170dc158f086fd
parent: fcd25570857bc4e00da359179ac57b785826f534
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Jan 4 09:46:13 EST 2015

Remember the environment variables we grabbed, instead of leaking them.

--- a/libstd/env+plan9.myr
+++ b/libstd/env+plan9.myr
@@ -41,8 +41,8 @@
 		match std.slurp(buf[:n])
 		| `Fail m: -> `None
 		| `Ok data:
-			slpush(envkey, sldup(name))
-			slpush(envval, data)
+			envkey = slpush(envkey, sldup(name))
+			envval = slpush(envval, data)
 			-> `Some data
 		;;
 	;;