libdraw: have openfont() set error string

This commit is contained in:
BurnZeZ 2016-03-19 17:47:25 -04:00
parent e387915a8f
commit 8c9d28f4f8

View file

@ -37,8 +37,10 @@ openfont(Display *d, char *name)
Font *fnt;
char *buf;
if((buf = readfile(name)) == nil)
if((buf = readfile(name)) == nil){
werrstr("openfont: %r");
return nil;
}
fnt = buildfont(d, buf, name);
free(buf);
return fnt;