tallow parseattr(nil) - plan9port - [fork] Plan 9 from user space
(HTM) git clone git://src.adamsgaard.dk/plan9port
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 52e5e85b025b9f520324997ea1410e0e6a9aa84c
(DIR) parent b2e0da3e397dc9dc0858119072ad53548e91e7b9
(HTM) Author: rsc <devnull@localhost>
Date: Sun, 13 Feb 2005 18:34:38 +0000
allow parseattr(nil)
Diffstat:
M src/libauth/attr.c | 3 +++
1 file changed, 3 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/src/libauth/attr.c b/src/libauth/attr.c
t@@ -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");