summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWalter Harms <wharms@bfs.de>2019-06-10 12:48:46 +0200
committerWalter Harms <wharms@bfs.de>2019-06-10 12:48:46 +0200
commit17c723643d0fb218b53ed04f837addb9d7de0d15 (patch)
tree48bba1daa6e8a142a41e76c98d78244ea61e4ff4 /src
parentfbbf91c17b8a85acfe883a103b43c21ddf1e6398 (diff)
no need to check arument for XtFree()
Signed-off-by: Walter Harms <wharms@bfs.de>
Diffstat (limited to 'src')
-rw-r--r--src/Intrinsic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Intrinsic.c b/src/Intrinsic.c
index 4612679..c9624ec 100644
--- a/src/Intrinsic.c
+++ b/src/Intrinsic.c
@@ -1223,7 +1223,7 @@ static String ExtractLocaleName(
if ((end = strchr (start, ENDCHAR))) {
len = (int) (end - start);
- if (buf != NULL) XtFree (buf);
+ XtFree (buf);
buf = XtMalloc ((Cardinal)(len + 1));
if (buf == NULL) return NULL;
strncpy(buf, start, (size_t) len);
@@ -1238,7 +1238,7 @@ static String ExtractLocaleName(
}
# ifdef WHITEFILL
if (strchr(lang, ' ')) {
- if (buf != NULL) XtFree (buf);
+ XtFree (buf);
buf = strdup (lang);
if (buf == NULL) return NULL;
for (temp = buf; (temp = strchr(temp, ' ')) != NULL; )