Work around malloc(0) returning NULL.