Fix typo from 859866a.
Replace '\0' with NULL as char* argument, avoiding warning.