SetFontPath: if ndirs is 0, skip work to make a list of directories
Clears warning from gcc 14.1:
SetFPath.c: In function ‘XSetFontPath’:
../include/X11/Xlibint.h:463:24: warning: argument 1 value is zero [-Walloc-zero]
463 | # define Xmalloc(size) malloc((size_t)(size))
| ^~~~~~~~~~~~~~~~~~~~~~
SetFPath.c:61:18: note: in expansion of macro ‘Xmalloc’
61 | if ((p = Xmalloc (nbytes))) {
| ^~~~~~~
Signed-off-by: Alan Coopersmith
Merge request reports
Activity
assigned to @marge-bot
mentioned in commit alanc/libx11@86e71472
added 1 commit
- 86e71472 - SetFontPath: if ndirs is 0, skip work to make a list of directories
mentioned in merge request !278 (merged)
Please register or sign in to reply