[cups.development] [cups.commit] [CUPS] r5850 - in branches/kerberos: . cups

Jelmer Vernooij jelmer at samba.org
Mon Aug 21 15:01:55 PDT 2006


On Mon, 2006-08-21 at 15:24 -0400, Michael Sweet wrote:
>  > ...
> > Modified: branches/kerberos/cups/auth.c
> > ===================================================================
> > --- branches/kerberos/cups/auth.c	2006-08-21 01:27:12 UTC (rev 5849)
> > +++ branches/kerberos/cups/auth.c	2006-08-21 01:44:37 UTC (rev 5850)
> > @@ -160,7 +160,9 @@
> >    * Clear the current authentication string...
> >    */
> >  
> > -  http->authstring[0] = '\0';
> > +  http->_authstring[0] = '\0';
> > +  free(http->authstring);
> > +  http->authstring = NULL;
> >  
> >   /*
> >    * See if we can do local authentication...
> Careful now, will http->authstring always be non-NULL?  free(NULL) is
> undefined on some systems...
It will actually be NULL in some cases. Which systems have problems with
free'ing NULL? C89 defines free(NULL) as valid and I haven't ever
encountered a system which has problems with it (at least not on any
systems Samba runs on, though it's probably less portable than cups).

Cheers,

Jelmer

-- 
Jelmer Vernooij <jelmer at samba.org> - http://samba.org/~jelmer/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.cups.org/pipermail/cups-devel/attachments/20060821/9f89c75f/attachment.sig>


More information about the cups-devel mailing list