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:
Paulo Cesar Pereira de Andrade 2009-02-02 16:36:39 -02:00
parent 427e9d45d4
commit f682c27e93

View file

@ -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) {