diff options
| author | Corey Richardson <corey@octayn.net> | 2014-01-18 17:50:49 -0500 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-01-24 22:30:01 -0800 |
| commit | bf5152f486a88ea106a820387d7d807ea99962af (patch) | |
| tree | 22774779486e84acd449da5fd0d8a669c64cdb31 /src/libgreen/coroutine.rs | |
| parent | 7499e2dd4596893980aaed0ca0558eec89ce47ad (diff) | |
| download | rust-bf5152f486a88ea106a820387d7d807ea99962af.tar.gz rust-bf5152f486a88ea106a820387d7d807ea99962af.zip | |
Fix zero-sized memory mapping
Diffstat (limited to 'src/libgreen/coroutine.rs')
| -rw-r--r-- | src/libgreen/coroutine.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libgreen/coroutine.rs b/src/libgreen/coroutine.rs index 3d7dc58a1b2..c001d40a246 100644 --- a/src/libgreen/coroutine.rs +++ b/src/libgreen/coroutine.rs @@ -49,7 +49,7 @@ impl Coroutine { pub fn empty() -> Coroutine { Coroutine { - current_stack_segment: Stack::new(0), + current_stack_segment: unsafe { Stack::dummy_stack() }, saved_context: Context::empty() } } |
