plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 52e5e85b025b9f520324997ea1410e0e6a9aa84c
parent b2e0da3e397dc9dc0858119072ad53548e91e7b9
Author: rsc <devnull@localhost>
Date:   Sun, 13 Feb 2005 18:34:38 +0000

allow parseattr(nil)

Diffstat:
Msrc/libauth/attr.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/libauth/attr.c b/src/libauth/attr.c @@ -131,6 +131,9 @@ _parseattr(char *s) int i, ntok, type; Attr *a; + if(s == nil) + return nil; + s = strdup(s); if(s == nil) sysfatal("_parseattr strdup: %r");