diff --git a/cde/lib/DtWidget/Control.c b/cde/lib/DtWidget/Control.c index 82ad592ee..8ca98320f 100644 --- a/cde/lib/DtWidget/Control.c +++ b/cde/lib/DtWidget/Control.c @@ -1290,8 +1290,8 @@ Draw( XRectangle clip; Position p_x, p_y, s_x, s_y; Dimension width = 0, height = 0; - Pixmap pix; - Pixmap mask; + Pixmap pix = 0; + Pixmap mask = 0; int index; Dimension left = 0, right = 0, top = 0, bottom = 0; Dimension v_pad; diff --git a/cde/lib/DtWidget/Editor.c b/cde/lib/DtWidget/Editor.c index ca23d66cb..168d95a19 100644 --- a/cde/lib/DtWidget/Editor.c +++ b/cde/lib/DtWidget/Editor.c @@ -1784,7 +1784,7 @@ extractFontMetrics( XmFontListEntry next_entry; XmFontType type_return = XmFONT_IS_FONT; XtPointer tmp_font; - XFontStruct *font; + XFontStruct *font = NULL; Boolean have_font_struct = False; Boolean have_font_set = False; Boolean use_font_set = False; diff --git a/cde/lib/DtWidget/Icon.c b/cde/lib/DtWidget/Icon.c index 8a234b5c8..7ce3f377b 100644 --- a/cde/lib/DtWidget/Icon.c +++ b/cde/lib/DtWidget/Icon.c @@ -3063,7 +3063,7 @@ Draw( GC gc; XRectangle clip; Position p_x, p_y, s_x, s_y; - Dimension width, height; + Dimension width = 0, height = 0; unsigned char behavior = G_Behavior (g); Position adj_x, adj_y; int rec_width=0,begin=0,diff=0; diff --git a/cde/lib/DtWidget/SpinBox.c b/cde/lib/DtWidget/SpinBox.c index e3e5e3c21..6d182092f 100644 --- a/cde/lib/DtWidget/SpinBox.c +++ b/cde/lib/DtWidget/SpinBox.c @@ -940,7 +940,7 @@ _SpinBoxBeginLine( DtSpinBoxWidget spin, Cardinal *num_params) { int new_position; - float new_current; + float new_current = 0.0; if (*num_params != 0) /* params means label or arrows */ spin = (DtSpinBoxWidget)XtParent(spin); @@ -978,7 +978,7 @@ _SpinBoxEndLine( DtSpinBoxWidget spin, Cardinal *num_params) { int new_position; - float new_current; + float new_current = 0.0; if (*num_params != 0) /* params means label or arrows */ spin = (DtSpinBoxWidget)XtParent(spin); diff --git a/cde/lib/DtWidget/TitleBox.c b/cde/lib/DtWidget/TitleBox.c index 2bf1e9345..c1913f40b 100644 --- a/cde/lib/DtWidget/TitleBox.c +++ b/cde/lib/DtWidget/TitleBox.c @@ -985,7 +985,7 @@ GeometryManager( height_req = request->request_mode & CWHeight, bw_req = request->request_mode & CWBorderWidth, almost = False; - XtGeometryResult result, parent_result; + XtGeometryResult result = XtGeometryYes, parent_result; XtWidgetGeometry parent_req, parent_reply;