diff options
author | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-02-02 16:36:39 -0200 |
---|---|---|
committer | Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> | 2009-02-02 16:36:39 -0200 |
commit | f682c27e93512773122887d2cbabb1657af45d2e (patch) | |
tree | 96577da6065a9d48d850893cc5509690a7a4572c | |
parent | 427e9d45d424b84efd9fc499aebf8d72392844c5 (diff) |
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.
-rw-r--r-- | src/xlibi18n/lcFile.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xlibi18n/lcFile.c b/src/xlibi18n/lcFile.c index e12dcbac..778e2690 100644 --- a/src/xlibi18n/lcFile.c +++ b/src/xlibi18n/lcFile.c @@ -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) { |