aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/lib/X11/ScrResStr.c
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/lib/X11/ScrResStr.c')
-rw-r--r--nx-X11/lib/X11/ScrResStr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nx-X11/lib/X11/ScrResStr.c b/nx-X11/lib/X11/ScrResStr.c
index 3e8d39071..1dd04a383 100644
--- a/nx-X11/lib/X11/ScrResStr.c
+++ b/nx-X11/lib/X11/ScrResStr.c
@@ -48,8 +48,7 @@ char *XScreenResourceString(Screen *screen)
(unsigned char **) &val) == Success) {
if ((actual_type == XA_STRING) && (actual_format == 8))
return val;
- if (val)
- Xfree(val);
+ Xfree(val);
}
return (char *)NULL;
}