return -1 in case of error, not NULL.

--HG--
branch : HEAD
1 file changed