diff options
Diffstat (limited to 'libX11/src/ScrResStr.c')
-rw-r--r-- | libX11/src/ScrResStr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libX11/src/ScrResStr.c b/libX11/src/ScrResStr.c index 0601c8644..4a5491a32 100644 --- a/libX11/src/ScrResStr.c +++ b/libX11/src/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; } |