tychosci/rust-mecab — Issue #2: mecab_new and mecab_new2 rarely causes segfault
Author: tychosci
Created: 2012-01-26 12:08:24+00:00
State: open

```
let m = mecab_new2("");
// the following code will call `_mecab::mecab_sparse_tostr(0, input)` internally
// if `mecab_new2` returns `{base: 0, cleanup: wrapped_mecab(0)}`.
m.sparse_tostr("");
```
the return value of these two functions should be wrapped with `option::t`