On Mon, Jul 28, 2003, Henrik Nordstrom wrote: > > Better to make accessLogFormatName return NULL on blank names I think. > The logics in all log functions assumes NULL == unknown, and > addressing this in accessLogFormatName would cover all bases in one > clean go.
How about this:
accessLogFormatName(const char *name)
{
if (NULL == name)
return NULL;
if (name[0] == '\0')
return NULL;
return username_quote(name);
}
.. ?
Adrian
