summaryrefslogtreecommitdiff
path: root/ident.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-11-04 10:10:34 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-11-04 13:01:43 -0700
commitfa682decde0b4513f5ce6084df590107359158f5 (patch)
treebcb78e5c546d6f4b5918d977574cbe6ddd987210 /ident.c
parent05401f3c4e641c1e67d11187dfb943c7ec1708f4 (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 'ident.c')
0 files changed, 0 insertions, 0 deletions