c_glib: seg fault to read 0 length value