summaryrefslogtreecommitdiff
path: root/src/TMparse.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-07-07 13:07:04 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2019-07-07 13:48:50 -0400
commite4dfb3e179e54177244ab668d6d84486fbd26944 (patch)
tree95bf6dc82a9f93389b5d30bc8af9f93df7cb05ac /src/TMparse.c
parent6038bd4fd95050f77c18c7cbf9ec2ca9152590af (diff)
fix a possibly-uninitialized quark, and remove unnecessary casts which produced warnings
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/TMparse.c')
-rw-r--r--src/TMparse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/TMparse.c b/src/TMparse.c
index 81366d2..6500324 100644
--- a/src/TMparse.c
+++ b/src/TMparse.c
@@ -1780,7 +1780,7 @@ static String ParseActionSeq(
while (*str != '\0' && !IsNewline(*str)) {
register ActionPtr action;
- XrmQuark quark;
+ XrmQuark quark = NULLQUARK;
action = XtNew(ActionRec);
action->params = NULL;
@@ -2068,7 +2068,7 @@ XtAccelerators XtParseAcceleratorTable(
{
Boolean error = FALSE;
XtAccelerators ret =
- (XtAccelerators) ParseTranslationTable ((char *)source, TRUE, XtTableAugment, &error);
+ (XtAccelerators) ParseTranslationTable (source, TRUE, XtTableAugment, &error);
if (error == TRUE)
XtWarningMsg ("parseError", "cvtStringToAcceleratorTable",
XtCXtToolkitError,
@@ -2081,7 +2081,7 @@ XtTranslations XtParseTranslationTable(
_Xconst char* source)
{
Boolean error = FALSE;
- XtTranslations ret = ParseTranslationTable((char *)source, FALSE, XtTableReplace, &error);
+ XtTranslations ret = ParseTranslationTable(source, FALSE, XtTableReplace, &error);
if (error == TRUE)
XtWarningMsg ("parseError",
"cvtStringToTranslationTable", XtCXtToolkitError,