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

dtsr: Resolve uninitialized warnings

This commit is contained in:
Peter Howkins 2021-12-22 01:16:18 +00:00 committed by Jon Trulson
parent 4eb099b047
commit 284c760616
3 changed files with 9 additions and 9 deletions

View file

@ -561,14 +561,14 @@ void process_profile (void)
int line_num = 0; int line_num = 0;
int i; int i;
char *tok; char *tok;
struct line_id *line_current; struct line_id *line_current = NULL;
struct field_id *field_current; struct field_id *field_current = NULL;
struct key_id *key_current; struct key_id *key_current;
struct date_id *date_current; struct date_id *date_current;
struct key_id *abstract_current; struct key_id *abstract_current = NULL;
struct finclude *finclude_current; struct finclude *finclude_current = NULL;
struct include *include_current; struct include *include_current = NULL;
struct include *i_i_current; struct include *i_i_current = NULL;
int found; int found;
int tok_type; int tok_type;
@ -2052,7 +2052,7 @@ void process_infile (void)
{ {
int line_num = 0; int line_num = 0;
struct line_id *line_current; struct line_id *line_current;
struct rec *record; struct rec *record = NULL;
char buffer[200]; char buffer[200];
int cant_be; int cant_be;
time_t startime = 0L; time_t startime = 0L;

View file

@ -920,7 +920,7 @@ void write_2_dtbs_addr_file (void)
{ {
DtSrINT32 num_addrs_ii; DtSrINT32 num_addrs_ii;
DtSrINT32 num_reads; DtSrINT32 num_reads;
DtSrINT32 i_start, k, cur_ind; DtSrINT32 i_start, k, cur_ind = 0;
DtSrINT32 num_delete_addrs = 0; DtSrINT32 num_delete_addrs = 0;
char addrs_removed = FALSE; char addrs_removed = FALSE;
DtSrINT32 i; DtSrINT32 i;

View file

@ -103,7 +103,7 @@ static struct or_dbrec
/****************************************/ /****************************************/
void count_words (int index) void count_words (int index)
{ {
long vista_field; long vista_field = 0;
UCHAR *ptr; UCHAR *ptr;
DtSrINT32 offset, free, addrs; DtSrINT32 offset, free, addrs;
int tabstop; int tabstop;