parrot/parrot — Issue #195: Bug in return :flat
Author: NotFound
Created: 2011-11-07 23:40:21+00:00
State: open

This code segfaults:

```
.sub main :main
.local string s, r
.local pmc arr

say "get"
s = s_get()
r = substr s, 0, 1
print "'"
print r
print "'"
say " done"
.end

.sub s_get
.local pmc arr
arr = new ["ResizableStringArray"]
# push arr, "xy"
.return(arr :flat )
.end
```

Looks like s gets a NULL instead of a STRINGNULL.