diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libauth/attr.c | 3 |
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"); |