drbig / snb

Simple hierarchical notebook that's locale aware
BSD 2-Clause "Simplified" License
40 stars 5 forks source link

Segfault in vitree_rebuild when opening empty file #9

Closed The-Compiler closed 6 years ago

The-Compiler commented 9 years ago

When running snb emptyfile.md I get a segfault here:

#0  vitree_rebuild (s=s@entry=0x555555843350, e=e@entry=0x0) at src/ui.c:1046
#1  0x0000555555559c7c in ui_set_root (e=0x0) at src/ui.c:1752
#2  0x0000555555555a13 in main (argc=<optimized out>, argv=<optimized out>) at src/snb.c:136
drbig commented 6 years ago

Should be fixed now.

Thanks for reporting!