dtappbuilder: Coverity fixes mostly related to uninitialised variables
This commit is contained in:
@@ -340,7 +340,7 @@ root_into_project(
|
||||
{
|
||||
sym_root_entry_type *root_node;
|
||||
ABObjPtr ab_module;
|
||||
ABObjPtr ret_val;
|
||||
ABObjPtr ret_val = NULL;
|
||||
|
||||
if (uil_root == (sym_entry_type *)NULL ||
|
||||
uil_root->header.b_tag != sym_k_root_entry)
|
||||
@@ -424,7 +424,7 @@ sections_into_module(
|
||||
sym_entry_type *next_node;
|
||||
sym_section_entry_type *section_node;
|
||||
short int done;
|
||||
ABObjPtr ret_val;
|
||||
ABObjPtr ret_val = NULL;
|
||||
|
||||
/*
|
||||
* populate module;
|
||||
|
||||
@@ -3355,7 +3355,7 @@ attach_context_store(
|
||||
{
|
||||
AttachmentContext *attach_context = (AttachmentContext *)context;
|
||||
STRING attach_str;
|
||||
AB_ATTACH_TYPE att_type;
|
||||
AB_ATTACH_TYPE att_type = AB_ATTACH_UNDEF;
|
||||
long att_pos = 0, att_off = 0, offset = 0;
|
||||
void *value = NULL;
|
||||
BOOL need_val = TRUE;
|
||||
|
||||
@@ -267,7 +267,7 @@ bilP_label_style_to_token(AB_LABEL_STYLE type)
|
||||
AB_LABEL_STYLE
|
||||
bilP_token_to_label_style(int type)
|
||||
{
|
||||
AB_LABEL_STYLE obj_type;
|
||||
AB_LABEL_STYLE obj_type = AB_STYLE_UNDEF;
|
||||
|
||||
switch (type)
|
||||
{
|
||||
|
||||
@@ -979,7 +979,7 @@ STRING
|
||||
bilP_load_att_hspacing(BIL_TOKEN valueToken)
|
||||
{
|
||||
ABObj obj = bilP_load.obj;
|
||||
int tmp_int;
|
||||
int tmp_int = 0;
|
||||
int type;
|
||||
|
||||
nset_att(AB_BIL_HSPACING);
|
||||
@@ -1000,7 +1000,7 @@ STRING
|
||||
bilP_load_att_hoffset(BIL_TOKEN valueToken)
|
||||
{
|
||||
ABObj obj = bilP_load.obj;
|
||||
int tmp_int;
|
||||
int tmp_int = 0;
|
||||
int type;
|
||||
|
||||
set_att(":hoffset");
|
||||
@@ -1688,7 +1688,7 @@ STRING
|
||||
bilP_load_att_max_length(BIL_TOKEN valueToken)
|
||||
{
|
||||
ABObj obj = bilP_load.obj;
|
||||
int tmp_int;
|
||||
int tmp_int = 0;
|
||||
int type;
|
||||
|
||||
set_att(":max-length");
|
||||
@@ -1710,7 +1710,7 @@ bilP_load_att_tear_off(BIL_TOKEN valueToken)
|
||||
ABObj obj = bilP_load.obj;
|
||||
int type = AB_BIL_UNDEF;
|
||||
STRING value = NULL;
|
||||
BOOL tear_off;
|
||||
BOOL tear_off = FALSE;
|
||||
|
||||
set_att(":tear-off");
|
||||
if (!bilP_token_is_bool(valueToken))
|
||||
@@ -1855,7 +1855,7 @@ STRING
|
||||
bilP_load_att_voffset(BIL_TOKEN valueToken)
|
||||
{
|
||||
ABObj obj = bilP_load.obj;
|
||||
int tmp_int;
|
||||
int tmp_int = 0;
|
||||
int type;
|
||||
|
||||
set_att(":voffset");
|
||||
@@ -1908,7 +1908,7 @@ STRING
|
||||
bilP_load_att_vspacing(BIL_TOKEN valueToken)
|
||||
{
|
||||
ABObj obj = bilP_load.obj;
|
||||
int tmp_int;
|
||||
int tmp_int = 0;
|
||||
int type;
|
||||
|
||||
set_att(":vspacing");
|
||||
|
||||
Reference in New Issue
Block a user