aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-06-29 13:24:38 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-07-05 08:11:41 +0200
commit3569ac1712169d34c4b29ca301458ec0c325eed1 (patch)
tree412c3b62076af0b3706b1fa67602eed6a42af212 /nx-X11
parent365fa4f3e7f7af34f919290ae3a19f6806d09ffb (diff)
downloadnx-libs-3569ac1712169d34c4b29ca301458ec0c325eed1.tar.gz
nx-libs-3569ac1712169d34c4b29ca301458ec0c325eed1.tar.bz2
nx-libs-3569ac1712169d34c4b29ca301458ec0c325eed1.zip
nx-X11/lib/X11/lcFile.c: Drop conditional always evaluating as True.
Backported from X.org, patch found in janitor cleanup commit... commit 8ba0ca32a63c532f128bdca7f1bf982cab8e12be Author: Paulo Cesar Pereira de Andrade <pcpa@mandriva.com.br> Date: Wed Jan 28 20:31:42 2009 -0200
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/lib/X11/lcFile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nx-X11/lib/X11/lcFile.c b/nx-X11/lib/X11/lcFile.c
index 2e0a49db4..e1812ad91 100644
--- a/nx-X11/lib/X11/lcFile.c
+++ b/nx-X11/lib/X11/lcFile.c
@@ -437,8 +437,7 @@ _XlcFileName(
char buf[PATH_MAX], *name;
name = NULL;
- if ((5 + (args[i] ? strlen (args[i]) : 0) +
- (cat ? strlen (cat) : 0)) < PATH_MAX) {
+ if ((5 + (args[i] ? strlen (args[i]) : 0) + strlen(cat)) < PATH_MAX) {
sprintf(buf, "%s/%s.dir", args[i], cat);
name = resolve_name(siname, buf, RtoL);
}