summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/TMprint.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/TMprint.c b/src/TMprint.c
index 7b7bde2..aeb6b30 100644
--- a/src/TMprint.c
+++ b/src/TMprint.c
@@ -729,8 +729,10 @@ void _XtDisplayTranslations(
widget->core.tm.translations,
NULL,
True);
- printf("%s\n",xString);
- XtFree(xString);
+ if (xString) {
+ printf("%s\n",xString);
+ XtFree(xString);
+ }
}
/*ARGSUSED*/
@@ -747,8 +749,10 @@ void _XtDisplayAccelerators(
widget->core.accelerators,
NULL,
True);
- printf("%s\n",xString);
- XtFree(xString);
+ if (xString) {
+ printf("%s\n",xString);
+ XtFree(xString);
+ }
}
/*ARGSUSED*/