Commit ecc0e747 authored by Jeremy Soller's avatar Jeremy Soller

Prevent adding empty variables to environment

parent e356262f
......@@ -147,7 +147,9 @@ pub extern fn userspace_init() {
let mut vars = Vec::new();
for var in env.split(|b| *b == b'\n') {
if ! var.is_empty() {
syscall::fexec_kernel(fd, args.into_boxed_slice(), vars.into_boxed_slice()).expect("failed to execute init");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment