Re: logging blank usernames

From: Henrik Nordstrom <hno@dont-contact.us>
Date: 28 Jul 2003 13:46:34 +0200

mån 2003-07-28 klockan 09.15 skrev Adrian Chadd:

> How about this:
>
> accessLogFormatName(const char *name)
> {
> if (NULL == name)
> return NULL;
> if (name[0] == '\0')
> return NULL;
> return username_quote(name);
> }

Looks fine to me. Can be simplified but why...

Regards
Henrik

-- 
Donations welcome if you consider my Free Squid support helpful.
https://www.paypal.com/xclick/business=hno%40squid-cache.org
Please consult the Squid FAQ and other available documentation before
asking Squid questions, and use the squid-users mailing-list when no
answer can be found. Private support questions is only answered
for a fee or as part of a commercial Squid support contract.
If you need commercial Squid support or cost effective Squid and
firewall appliances please refer to MARA Systems AB, Sweden
http://www.marasystems.com/, info@marasystems.com
Received on Mon Jul 28 2003 - 05:46:44 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:20:17 MST