allow parseattr(nil)

This commit is contained in:
rsc 2005-02-13 18:34:38 +00:00
parent b2e0da3e39
commit 52e5e85b02

View file

@ -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");