1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

ttsnoop: Resolve uninitialized warnings

This commit is contained in:
Peter Howkins 2021-12-22 01:12:40 +00:00 committed by Jon Trulson
parent 35c9fd24a3
commit 20e2618097
2 changed files with 8 additions and 8 deletions

View file

@ -317,7 +317,7 @@ _DtTtMessageUpdate(
if (tt_is_err( status ) || (instance == 0)) { if (tt_is_err( status ) || (instance == 0)) {
return; return;
} }
char *func; char *func = NULL;
switch (choice) { switch (choice) {
case _DtStringChooseMessageOtype: case _DtStringChooseMessageOtype:
status = tt_message_otype_set( msg, val ); status = tt_message_otype_set( msg, val );

View file

@ -60,9 +60,9 @@ _DtTtChooserSet(
dtb_tt_chooser_chooser_initialize( dtb_tt_chooser_chooser_initialize(
instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin ); instance, dtb_ttsnoop_ttsnoop_win.ttsnoopWin );
} }
char *okString; char *okString = NULL;
char *title; char *title = NULL;
char *valueLabel; char *valueLabel = NULL;
char *valuesLabel; char *valuesLabel;
switch (choice) { switch (choice) {
case _DtTtChooserNone: case _DtTtChooserNone:
@ -148,7 +148,7 @@ _DtTtChooserSet(
title = "ttdt_close"; title = "ttdt_close";
break; break;
} }
DtTtType type; DtTtType type = DTTT_OP;
switch (choice) { switch (choice) {
case _DtTtChooserNone: case _DtTtChooserNone:
return; return;
@ -269,7 +269,7 @@ choiceSelected(
XmListCallbackStruct *info = (XmListCallbackStruct *)callData; XmListCallbackStruct *info = (XmListCallbackStruct *)callData;
int choice; int choice;
XtVaGetValues( instance->chooserOkButton, XmNuserData, &choice, NULL ); XtVaGetValues( instance->chooserOkButton, XmNuserData, &choice, NULL );
DtTtType type; DtTtType type = DTTT_OP;
Boolean isString = False; Boolean isString = False;
switch ((_DtTtChooserAction)choice) { switch ((_DtTtChooserAction)choice) {
case _DtTtChooserNone: case _DtTtChooserNone:
@ -338,14 +338,14 @@ choiceOkayed(
XtVaGetValues( instance->chooserOkButton, XmNuserData, &ival, NULL ); XtVaGetValues( instance->chooserOkButton, XmNuserData, &ival, NULL );
_DtTtChooserAction choice = (_DtTtChooserAction)ival; _DtTtChooserAction choice = (_DtTtChooserAction)ival;
Widget label = dtb_ttsnoop_ttsnoop_win.ttsnoopWin_label; Widget label = dtb_ttsnoop_ttsnoop_win.ttsnoopWin_label;
Tt_status status = TT_OK;
char *func = NULL, *procid;
switch (choice) { switch (choice) {
void *pval; void *pval;
int ival, fd; int ival, fd;
Tt_message msg; Tt_message msg;
Tt_pattern pat; Tt_pattern pat;
Tt_pattern *pats; Tt_pattern *pats;
Tt_status status;
char *func, *procid;
XtPointer xtPtr; XtPointer xtPtr;
XtInputId id; XtInputId id;
Widget newWidget; Widget newWidget;