mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dtwm: Resolve uninitialized warnings
This commit is contained in:
parent
7a08d8cedc
commit
f073bc2e24
11 changed files with 13 additions and 13 deletions
|
@ -1360,7 +1360,7 @@ PushCB (Widget w,
|
||||||
|
|
||||||
BoxData * box_data;
|
BoxData * box_data;
|
||||||
SubpanelData * subpanel_data;
|
SubpanelData * subpanel_data;
|
||||||
ControlData * main_control_data;
|
ControlData * main_control_data = NULL;
|
||||||
|
|
||||||
char m_state;
|
char m_state;
|
||||||
|
|
||||||
|
|
|
@ -1796,7 +1796,7 @@ ResolveDuplicates (RecordData * record_data,
|
||||||
int i, start_index, lock_index, last_index;
|
int i, start_index, lock_index, last_index;
|
||||||
ElementValue * element_values;
|
ElementValue * element_values;
|
||||||
int cont_type;
|
int cont_type;
|
||||||
char *cont_name, *record_name;
|
char *cont_name = NULL, *record_name;
|
||||||
int count = *record_count;
|
int count = *record_count;
|
||||||
Boolean locked;
|
Boolean locked;
|
||||||
|
|
||||||
|
|
|
@ -1046,7 +1046,7 @@ UpdateMainControlMenu (ControlData * control_data)
|
||||||
long control_type;
|
long control_type;
|
||||||
Arg args[5];
|
Arg args[5];
|
||||||
|
|
||||||
ElementValue * old_element_values;
|
ElementValue * old_element_values = NULL;
|
||||||
|
|
||||||
/* Save element values of control then load values of default control */
|
/* Save element values of control then load values of default control */
|
||||||
|
|
||||||
|
@ -1769,7 +1769,7 @@ WSPopupMenu (Widget w,
|
||||||
XmAnyCallbackStruct * callback;
|
XmAnyCallbackStruct * callback;
|
||||||
XEvent * event;
|
XEvent * event;
|
||||||
Widget form, focus_widget;
|
Widget form, focus_widget;
|
||||||
SwitchData * switch_data;
|
SwitchData * switch_data = NULL;
|
||||||
ControlData * control_data = NULL;
|
ControlData * control_data = NULL;
|
||||||
Boolean is_button = False;
|
Boolean is_button = False;
|
||||||
Position x, y;
|
Position x, y;
|
||||||
|
|
|
@ -2317,7 +2317,7 @@ SwitchButtonCreate (SwitchData * switch_data,
|
||||||
|
|
||||||
for (i = 0; i < switch_count; i++)
|
for (i = 0; i < switch_count; i++)
|
||||||
{
|
{
|
||||||
int pixel_set_index, map_index;
|
int pixel_set_index = 1, map_index;
|
||||||
|
|
||||||
if (one == True)
|
if (one == True)
|
||||||
i = switch_count - 1;
|
i = switch_count - 1;
|
||||||
|
|
|
@ -1625,7 +1625,7 @@ RestoreHelpDialogs(
|
||||||
|
|
||||||
Position xLoc, yLoc;
|
Position xLoc, yLoc;
|
||||||
short columns, rows;
|
short columns, rows;
|
||||||
int helpType;
|
int helpType = DtHELP_TYPE_TOPIC;
|
||||||
char geometry[40];
|
char geometry[40];
|
||||||
int wsCnt;
|
int wsCnt;
|
||||||
int cCount;
|
int cCount;
|
||||||
|
|
|
@ -2404,7 +2404,7 @@ RegisterPushRecallClients (
|
||||||
WmFpPushRecallClientList pPRCD,
|
WmFpPushRecallClientList pPRCD,
|
||||||
int count)
|
int count)
|
||||||
{
|
{
|
||||||
WmScreenData *pSD;
|
WmScreenData *pSD = NULL;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i= 0; i < wmGD.numScreens; i++)
|
for (i= 0; i < wmGD.numScreens; i++)
|
||||||
|
|
|
@ -377,7 +377,7 @@ void CheckTerminalSeparator(MenuSpec *menuSpec, Widget buttonWidget, Boolean man
|
||||||
static MenuItem *
|
static MenuItem *
|
||||||
DuplicateMenuItems (MenuItem *menuItems)
|
DuplicateMenuItems (MenuItem *menuItems)
|
||||||
{
|
{
|
||||||
MenuItem *newMenuItem = (MenuItem *) NULL, *returnMenuItem, *curMenuItem;
|
MenuItem *newMenuItem = NULL, *returnMenuItem = NULL, *curMenuItem;
|
||||||
|
|
||||||
for (curMenuItem = menuItems;
|
for (curMenuItem = menuItems;
|
||||||
curMenuItem != (MenuItem *) NULL;
|
curMenuItem != (MenuItem *) NULL;
|
||||||
|
|
|
@ -1477,7 +1477,7 @@ _DtWmParseExpandEnvironmentVariables (
|
||||||
int lenNonEnv;
|
int lenNonEnv;
|
||||||
int lenEnvVar;
|
int lenEnvVar;
|
||||||
int lenEnvValue;
|
int lenEnvValue;
|
||||||
int lenReturn;
|
int lenReturn = 0;
|
||||||
int lenSave;
|
int lenSave;
|
||||||
static unsigned char pchDefaultBrk[] = {
|
static unsigned char pchDefaultBrk[] = {
|
||||||
DTWM_CHAR_ENVIRONMENT,
|
DTWM_CHAR_ENVIRONMENT,
|
||||||
|
|
|
@ -4916,7 +4916,7 @@ ProcessDefaultBackdropImages (WmScreenData *pSD)
|
||||||
void
|
void
|
||||||
ProcessWorkspaceList (WmScreenData *pSD)
|
ProcessWorkspaceList (WmScreenData *pSD)
|
||||||
{
|
{
|
||||||
int i, wsNameCount, wsNamesAlloced;
|
int i, wsNameCount = 0, wsNamesAlloced;
|
||||||
WmWorkspaceData *pwsI;
|
WmWorkspaceData *pwsI;
|
||||||
unsigned char *lineP = NULL;
|
unsigned char *lineP = NULL;
|
||||||
unsigned char *string;
|
unsigned char *string;
|
||||||
|
|
|
@ -1414,8 +1414,8 @@ ProcessWmNormalHints (ClientData *pCD, Boolean firstTime, long manageFlags)
|
||||||
int diff;
|
int diff;
|
||||||
unsigned long decoration;
|
unsigned long decoration;
|
||||||
unsigned int boxdim, tmpMin;
|
unsigned int boxdim, tmpMin;
|
||||||
unsigned int oldWidthInc, oldHeightInc;
|
unsigned int oldWidthInc = 0, oldHeightInc = 0;
|
||||||
unsigned int oldBaseWidth, oldBaseHeight;
|
unsigned int oldBaseWidth = 0, oldBaseHeight = 0;
|
||||||
unsigned int incWidth, incHeight;
|
unsigned int incWidth, incHeight;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -614,7 +614,7 @@ void ConfigureNewState (ClientData *pcd)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
long decor;
|
long decor = WM_DECOR_DEFAULT;
|
||||||
WmHeadInfo_t *WmHI;
|
WmHeadInfo_t *WmHI;
|
||||||
|
|
||||||
if (pcd->isFullscreen)
|
if (pcd->isFullscreen)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue