fix 3 tests: return (*C.char)(nil) for empty slice
Merge pull request #1 from rw/empty_slice_fix

Fix 3 test panics: return (*C.char)(nil) for empty slice