cvs commit: src/usr.bin/newgrp

Matthew Dillon dillon at apollo.backplane.com
Fri Dec 10 12:42:24 PST 2004


:liamfoy     2004/12/08 14:00:32 PST
:
:DragonFly src repository
:
:  Modified files:
:    usr.bin/newgrp       newgrp.c 
:  Log:
:  - Check the return value of setenv(). We should check this value since
:    setenv() uses both malloc and realloc.
:  
:  Revision  Changes    Path
:  1.2       +9 -3      src/usr.bin/newgrp/newgrp.c


    That's fine, though the typical way of checking the return 
    value is to check for it < 0 rather then exactly equal to
    -1.  Both are correct, but < 0 is used the most often in the code
    base and considered easier to read.

					-Matt
					Matthew Dillon 
					<dillon at xxxxxxxxxxxxx>





More information about the Commits mailing list