SwitchData * switch_data;
Boolean valid;
- int current_switch;
+ int current_switch = 0;
int i;
int ac;
int i, j;
int entry;
- int keyword_count;
+ int keyword_count = 0;
char ** field_keywords;
{
/* DtDTS_DA_ACTION_LIST */
case 0:
+ free(act_list); /* Remove any previous loop run through */
act_list = (char *) strdup(attr_list[i]->value);
break;
{
long delete_workspace = (long) client_data;
- SwitchData * switch_data;
+ SwitchData * switch_data = NULL;
int i;
break;
}
}
-
- _DtWsmDeleteWorkspace (panel.shell,
- switch_data->atom_names[delete_workspace]);
+
+ if(switch_data)
+ {
+ _DtWsmDeleteWorkspace (panel.shell,
+ switch_data->atom_names[delete_workspace]);
+ }
}
int switch_count = 1;
Atom * atom_names;
Atom current_workspace_atom;
- int current_workspace;
+ int current_workspace = 0;
Widget switch_button;
{
ElementValue * element_values;
- SubpanelData * subpanel_data;
+ SubpanelData * subpanel_data = NULL;
BoxData * box_data = (BoxData *)control_data->parent_data;
DtWmHints vHints;
box_data->subpanel_count++;
- SubpanelCreate (control_data, subpanel_data);
+ if(subpanel_data) {
+ SubpanelCreate (control_data, subpanel_data);
+ }
XtSetArg (al[0], XmNimageName, post_arrow_image);
pch = NULL;
}
free (pchImageName); /* temporary string */
+ pchImageName = NULL;
free (pchL); /* temporary string */
}
}
+
+ free (pchImageName);
}
\f
int insideBevel, inset, diffBevel;
unsigned int nTitleBevel, sTitleBevel, eTitleBevel, wTitleBevel;
unsigned int meTitleBevel, inWidth;
- int x, y, xAdj, yAdj;
+ int x, y, xAdj = 0, yAdj = 0;
unsigned int width, height;
- RList *prlTop, *prlBot;
+ RList *prlTop = NULL, *prlBot = NULL;
int jX, jY;
unsigned int jW, jH;
void HandleClientMessage (ClientData *pCD, XClientMessageEvent *clientEvent)
{
- unsigned int newState;
+ unsigned int newState = WITHDRAWN_STATE;
/*
* Process the client message event based on the message_type.
for (i = 0; i < panel.push_recall_count; i++)
if (strcmp (client_name, push_recall_list[i].pchResName) == 0)
return (i);
+
+ /* Should never get here */
+ return 0;
}
if (!bWaiting)
{
- long clientTimeout;
+ long clientTimeout = 0;
Arg al[5];
int ac;
WmPanelistObject pPanelist;
XrmDestroyDatabase(db);
}
#endif /* NO_DT */
+
+ return True;
} /* END OF FUNCTION RestoreHelpDialogs */
/*************************************<->*************************************
int ix1, ix2;
int count;
int newX, newY;
- ClientData *pCD_tmp, *pMyCD;
+ ClientData *pCD_tmp = NULL, *pMyCD;
int hasActiveText = 1;
Arg args[4];
Dimension majorDimension, minorDimension;
{
KeySym keysym;
Boolean control;
- int warpX, warpY, currentX, currentY, newX, newY;
+ int warpX, warpY, currentX = 0, currentY = 0, newX, newY;
int junk, keyMult;
Window junk_win;
XEvent KeyEvent;
/* Easy but slow way to do this would be to use XGetAtomName(). */
/* To avoid XServer round trips (and to weed out invalid WS names) */
/* we look through workspaces attached to this screen for ID matches. */
- char *cwsP, *tmpP, *wsNameP;
+ char *cwsP = NULL, *tmpP, *wsNameP;
int pLen = 0;
int i;