allow parseattr(nil)
This commit is contained in:
parent
b2e0da3e39
commit
52e5e85b02
@ -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");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user