segfault on NULL char* ffi call