Why not one line?
char *headerString, *currentCookies,  *errString, *domainString = "", *pathPrefix = "", *expireTimeString = NULL;