aboutsummaryrefslogtreecommitdiff
path: root/src/libauth
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-02-13 18:34:38 +0000
committerrsc <devnull@localhost>2005-02-13 18:34:38 +0000
commit52e5e85b025b9f520324997ea1410e0e6a9aa84c (patch)
tree1e8bccb7217655d3b17091d82504696ccaf8148a /src/libauth
parentb2e0da3e397dc9dc0858119072ad53548e91e7b9 (diff)
downloadplan9port-52e5e85b025b9f520324997ea1410e0e6a9aa84c.tar.gz
plan9port-52e5e85b025b9f520324997ea1410e0e6a9aa84c.tar.bz2
plan9port-52e5e85b025b9f520324997ea1410e0e6a9aa84c.zip
allow parseattr(nil)
Diffstat (limited to 'src/libauth')
-rw-r--r--src/libauth/attr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libauth/attr.c b/src/libauth/attr.c
index 5f35750b..d8ad9ab3 100644
--- 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");