+2022-05-19 Nick Clifton <nickc@redhat.com>
+
+ * dlltool.c (run): Initialise errmsg_fmt.
+ * dllwrap.c (run): Likewise.
+ * resrc.c (run_cmd): Likewise.
+ * mclex.c (mc_add_keyword): Initialise usz.
+ * srconv.c (wd_hd): Initialise hd.spare2.
+ * windmc.c (mc_add_node_lang): Initialise s.
+ (mc_generate_bin_item): Initialise cvt_txt.
+ (main): Initialise u.
+
2022-05-18 Nick Clifton <nickc@redhat.com>
PR 29135
int pid, wait_status;
int i;
const char **argv;
- char *errmsg_fmt, *errmsg_arg;
+ char *errmsg_fmt = NULL, *errmsg_arg = NULL;
char *temp_base = choose_temp_base ();
inform (_("run: %s %s"), what, args);
int pid, wait_status, retcode;
int i;
const char **argv;
- char *errmsg_fmt, *errmsg_arg;
+ char *errmsg_fmt = NULL, *errmsg_arg = NULL;
char *temp_base = choose_temp_base ();
int in_quote;
char sep;
static void
mc_add_keyword_ascii (const char *sz, int rid, const char *grp, rc_uint_type nv, const char *sv)
{
- unichar *usz, *usv = NULL;
+ unichar *usz = NULL, *usv = NULL;
rc_uint_type usz_len;
unicode_from_codepage (&usz_len, &usz, sz, CP_ACP);
int pid, wait_status, retcode;
int i;
const char **argv;
- char *errmsg_fmt, *errmsg_arg;
+ char *errmsg_fmt = NULL, *errmsg_arg = NULL;
char *temp_base = choose_temp_base ();
int in_quote;
char sep;
struct IT_hd hd;
hd.spare1 = 0;
+ hd.spare2 = 0;
if (bfd_get_file_flags (abfd) & EXEC_P)
hd.mt = MTYPE_ABS_LM;
else
static char *
convert_unicode_to_ACP (const unichar *usz)
{
- char *s;
+ char *s = NULL;
rc_uint_type l;
if (! usz)
else
{
rc_uint_type txt_len, l;
- char *cvt_txt;
+ char *cvt_txt = NULL;
codepage_from_unicode( &l, n->message, &cvt_txt, n->lang->lang_info.wincp);
if (! cvt_txt)
/* Load the input file and do code page transformations to UTF16. */
{
- unichar *u;
+ unichar *u = NULL;
rc_uint_type ul;
char *buff;
bfd_size_type flen;