mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
libdraw, acme: fix acme segfault triggered passing an invalid font
acme -f nosuchfont Change-Id: Iaa727db02b43e63082130796ec97c0efb7fe2b19 Reviewed-on: https://plan9port-review.googlesource.com/1220 Reviewed-by: Russ Cox <rsc@swtch.com>
This commit is contained in:
parent
3aca22118d
commit
25822e8da3
1 changed files with 2 additions and 0 deletions
|
@ -221,6 +221,8 @@ openfont(Display *d, char *name)
|
|||
*p = '\0';
|
||||
|
||||
f = openfont1(d, name);
|
||||
if(!f)
|
||||
return nil;
|
||||
f->lodpi = f;
|
||||
f->namespec = namespec;
|
||||
|
||||
|
|
Loading…
Reference in a new issue