Fix a whole bunch of error return NULL that should be return -1.
1 file changed