Initialize to NULL: there are "goto error"s before it is set