dtimsstart: Resolve uninitialized warnings

This commit is contained in:
Peter Howkins
2021-12-22 01:21:33 +00:00
committed by Jon Trulson
parent efa29a21e0
commit 1e92a43e54
3 changed files with 4 additions and 4 deletions

View File

@@ -150,7 +150,7 @@ int read_cmd_conf(void)
char *conf_dir, *path;
char *p, *lp, *valp;
int line_num, num_alias;
DtEnv *dt;
DtEnv *dt = NULL;
RemoteEnv *remote;
FILE *fp;
# ifdef old_hpux

View File

@@ -393,7 +393,7 @@ void ximsFinish(void)
static int ximsShowImsList(void)
{
int ret;
int ret = NoError;
int i;
int host_type = HOST_LOCAL;
char *hostname;
@@ -769,7 +769,7 @@ static int parse_options(int argc, char **argv)
int i, n;
int wac = 1;
char *wav[80];
int orgMode;
int orgMode = MODE_START;
static bool first_time = True;
#define SET_FLAG(f) OpFlag |= (f)

View File

@@ -370,7 +370,7 @@ static int parse_ims_list(char *ptr, ImsList *list)
char *def_name;
int i, num_ent;
ImsEnt *ent = 0;
ImsConf *ims;
ImsConf *ims = NULL;
CLR(list, ImsList);
list->default_idx = -1;