summaryrefslogtreecommitdiff
path: root/src/VarCreate.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2019-05-08 21:15:08 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2019-05-18 06:41:36 -0400
commit91f1119528b57f94d178f0cfb12efafd0c90bbc9 (patch)
treeb98c68ebf25eb4c477fa99c2548d2c8a4804a4c0 /src/VarCreate.c
parent43a65ae23370e0f7fb427e96c6d9037d8fa1af35 (diff)
fixes cppcheck "style" warnings (mostly variable-scope)
Signed-off-by: Thomas E. Dickey <dickey@invisible-island.net>
Diffstat (limited to 'src/VarCreate.c')
-rw-r--r--src/VarCreate.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/VarCreate.c b/src/VarCreate.c
index eb2c35a..896935d 100644
--- a/src/VarCreate.c
+++ b/src/VarCreate.c
@@ -357,12 +357,15 @@ XtVaOpenApplication(
WidgetClass widget_class,
...)
{
+ Widget code;
va_list var;
va_start(var, widget_class);
- return _XtVaOpenApplication(app_context_return, (String)application_class,
+ code = _XtVaOpenApplication(app_context_return, (String)application_class,
options, num_options, argc_in_out, argv_in_out,
fallback_resources, widget_class, var);
+ va_end(var);
+ return code;
}
Widget
@@ -376,13 +379,16 @@ XtVaAppInitialize(
String *fallback_resources,
...)
{
+ Widget code;
va_list var;
va_start(var, fallback_resources);
- return _XtVaOpenApplication(app_context_return, (String)application_class,
+ code = _XtVaOpenApplication(app_context_return, (String)application_class,
options, num_options, argc_in_out, argv_in_out,
fallback_resources,
applicationShellWidgetClass, var);
+ va_end(var);
+ return code;
}
#endif /* !((SUNSHLIB || AIXSHLIB) && SHAREDCODE) */