1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-12 19:22:41 +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)) {
return;
}
char *func;
char *func = NULL;
switch (choice) {
case _DtStringChooseMessageOtype:
status = tt_message_otype_set( msg, val );

View file

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