diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-11-04 10:10:34 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2023-11-04 13:01:43 -0700 |
commit | fa682decde0b4513f5ce6084df590107359158f5 (patch) | |
tree | bcb78e5c546d6f4b5918d977574cbe6ddd987210 /.gitignore | |
parent | 05401f3c4e641c1e67d11187dfb943c7ec1708f4 (diff) |
doDirectory: add missing check for malloc() returning NULL
Resolves gcc analyzer warning:
mkfontscale.c: In function ‘doDirectory’:
mkfontscale.c:974:17: warning: use of possibly-NULL ‘s’ where non-null expected [CWE-690] [-Wanalyzer-possible-null-argument]
974 | memcpy(s, xlfd_name, l - 11);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions