dtcm: Resolve uninitialized warnings

This commit is contained in:
Peter Howkins
2021-12-22 01:26:51 +00:00
committed by Jon Trulson
parent 85684c337a
commit 2c134302c8
13 changed files with 24 additions and 19 deletions

View File

@@ -575,7 +575,7 @@ find_appts(Widget widget, XtPointer client_data, XmPushButtonCallbackStruct *cbs
int num_items, mo, last_match_total = 0, match_total = 0;
pr_pos xy;
Tick end_of_time, start, stop;
Tick_list *ptr, *next_ptr, *tail_ptr, *new_tick;
Tick_list *ptr, *next_ptr, *tail_ptr = NULL, *new_tick;
CSA_session_handle cal = 0;
CSA_return_code stat;
CSA_entry_handle *entries = NULL;

View File

@@ -60,7 +60,7 @@ get_font(
XmFontContext fl_context;
XmFontListEntry fl_entry;
XtPointer fl_entry_font,
font_to_use;
font_to_use = NULL;
char *fl_entry_font_tag;
Boolean found_font_set = False,
found_font_struct = False;

View File

@@ -682,7 +682,7 @@ dialog_popup(Widget parent, ...) {
char *text_str = NULL, *ptr, buf[MAXNAMELEN], *help_str;
Pixmap px;
va_list pvar;
Widget frame, form, image, sep, text, last_text, button;
Widget frame, form, image, sep, text, last_text = NULL, button;
Display *dpy = XtDisplayOfObject(parent);
XmString xmstr;
Dialog_create_op op;
@@ -1301,7 +1301,7 @@ Dimension *dim,
... )
{
va_list ap;
int i, _high;
int i, _high = 0;
Dimension _max;
Widget _targetW, _highestW;
Arg _args[3];
@@ -1355,7 +1355,7 @@ Dimension *dim,
... )
{
va_list ap;
int i, _wide;
int i, _wide = 0;
Widget _targetW, _widestW;
Dimension _max;
XtWidgetGeometry geo;
@@ -1425,7 +1425,7 @@ Dimension *dim,
... )
{
va_list ap;
int i, _high;
int i, _high = 0;
Dimension _max;
Widget _targetW, _highestW;
Arg _args[3];

View File

@@ -2638,7 +2638,7 @@ extern Boolean
get_editor_vals_from_ui(Props_pu *pu, Props *p) {
int i, hr, min;
char buf[5];
Widget text;
Widget text = NULL;
DisplayType dt = get_int_prop(p, CP_DEFAULTDISP);
Reminders_val *val;
char *msg, *dur_txt;
@@ -2733,7 +2733,7 @@ get_editor_vals_from_ui(Props_pu *pu, Props *p) {
if ((status = get_reminders_vals(&pu->ep_reminders, False)) != REMINDERS_OK) {
char *title = XtNewString(CATGETS(c->DT_catd, 1, 1079, "Calendar : Error - Editor Settings"));
char *text;
char *text = NULL;
char *ident1 = XtNewString(CATGETS(c->DT_catd, 1, 95, "Continue"));
switch (status) {

View File

@@ -2128,8 +2128,10 @@ build_todo_list(ToDo *t, Tick date, Glance glance, CSA_entry_handle **a, CSA_uin
state = CSA_STATUS_COMPLETED;
use_state = B_TRUE;
}
else
else {
state = 0;
use_state = B_FALSE;
}
setup_range(&range_attrs, &ops, &range_count, start, stop,
CSA_TYPE_TODO, state, use_state, t->cal->general->version);