summaryrefslogtreecommitdiff
path: root/src/Toggle.c
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowitz@users.sourceforge.net>2011-08-26 01:46:57 -0500
committerYaakov Selkowitz <yselkowitz@users.sourceforge.net>2011-08-26 17:31:58 -0500
commitfe2d2e640bf7a196fd1fe1f2efb7d4ba6382ce4f (patch)
treecb4061961e4785ce16720d360233a9ed24c34ab5 /src/Toggle.c
parent42123013118c42f40873b1b8785c7e5ce2734965 (diff)
Fix ambiguous 'else' warnings
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/Toggle.c')
-rw-r--r--src/Toggle.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Toggle.c b/src/Toggle.c
index 26c3573..6392e18 100644
--- a/src/Toggle.c
+++ b/src/Toggle.c
@@ -492,10 +492,11 @@ XawToggleChangeRadioGroup(Widget w, Widget radio_group)
if ( tw->command.set && radio_group != NULL )
XawToggleUnsetCurrent(radio_group);
- if (radio_group != NULL)
+ if (radio_group != NULL) {
if ((group = GetRadioGroup(radio_group)) == NULL)
CreateRadioGroup(w, radio_group);
else AddToRadioGroup(group, w);
+ }
}
/* Function Name: XawToggleGetCurrent