mirror of
https://gitlab.freedesktop.org/xorg/lib/libx11.git
synced 2026-05-07 17:58:44 +02:00
Check if a function argument is NULL.
This was an addition to patch (also by me) https://bugs.freedesktop.org/attachment.cgi?id=14660 that was not added when rediscovering/correcting the problem.
This commit is contained in:
parent
427e9d45d4
commit
f682c27e93
1 changed files with 4 additions and 1 deletions
|
|
@ -504,7 +504,10 @@ _XlcFileName(
|
|||
|
||||
siname = XLC_PUBLIC(lcd, siname);
|
||||
|
||||
lowercase(cat, category);
|
||||
if (category)
|
||||
lowercase(cat, category);
|
||||
else
|
||||
cat[0] = '\0';
|
||||
xlocaledir(dir,XLC_BUFSIZE);
|
||||
n = _XlcParsePath(dir, args, NUM_LOCALEDIR);
|
||||
for (i = 0; i < n; ++i) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue