From f682c27e93512773122887d2cbabb1657af45d2e Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Mon, 2 Feb 2009 16:36:39 -0200 Subject: [PATCH] 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. --- src/xlibi18n/lcFile.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) {