summaryrefslogtreecommitdiff
path: root/src/ResConfig.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2022-06-17 20:44:12 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2022-06-18 06:36:49 -0400
commit806aefc8c6175b6252a300905a327e9d60939af7 (patch)
treef6413008b2fc8c274598c89e70faf147c45b0d4d /src/ResConfig.c
parenta80c543bb9955199619a2cb6280b89a879fd8811 (diff)
cppcheck fixes (const, null dereferencing, uninitialized, scope)
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/ResConfig.c')
-rw-r--r--src/ResConfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ResConfig.c b/src/ResConfig.c
index c3bbd37..f73a358 100644
--- a/src/ResConfig.c
+++ b/src/ResConfig.c
@@ -620,7 +620,7 @@ _get_last_part(char *remainder, char **part)
*part = XtNewString(tight);
return ('.');
}
- if ((tight == NULL) || (loose && (strcoll(tight, loose) < 0))) {
+ if ((tight == NULL) || (strcoll(tight, loose) < 0)) {
*loose++ = '\0';
*part = XtNewString(loose);
return ('*');