allow parseattr(nil)
This commit is contained in:
parent
b2e0da3e39
commit
52e5e85b02
1 changed files with 3 additions and 0 deletions
|
|
@ -131,6 +131,9 @@ _parseattr(char *s)
|
||||||
int i, ntok, type;
|
int i, ntok, type;
|
||||||
Attr *a;
|
Attr *a;
|
||||||
|
|
||||||
|
if(s == nil)
|
||||||
|
return nil;
|
||||||
|
|
||||||
s = strdup(s);
|
s = strdup(s);
|
||||||
if(s == nil)
|
if(s == nil)
|
||||||
sysfatal("_parseattr strdup: %r");
|
sysfatal("_parseattr strdup: %r");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue