libdraw: have openfont() set error string
This commit is contained in:
parent
e387915a8f
commit
8c9d28f4f8
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue