dtappbuilder: Coverity fixes mostly related to uninitialised variables
This commit is contained in:
@@ -1629,6 +1629,8 @@ objxmP_set_attachment_arg(
|
||||
att_offset_resource = XmNbottomOffset;
|
||||
att_pos_resource = XmNbottomPosition;
|
||||
break;
|
||||
default:
|
||||
return OK;
|
||||
}
|
||||
type = obj_get_attach_type(obj, dir);
|
||||
value = obj_get_attach_value(obj, dir);
|
||||
|
||||
@@ -411,7 +411,7 @@ config_attachment(
|
||||
)
|
||||
{
|
||||
ABObj attobj;
|
||||
ABAttachment *attachment;
|
||||
ABAttachment *attachment = NULL;
|
||||
|
||||
switch(dir)
|
||||
{
|
||||
@@ -427,6 +427,8 @@ config_attachment(
|
||||
case AB_CP_SOUTH:
|
||||
attachment = &(obj->attachments->south);
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
if (attachment->type == AB_ATTACH_OBJ)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user