dtappbuilder: Coverity fixes mostly related to uninitialised variables

This commit is contained in:
Peter Howkins
2018-05-01 19:02:14 +01:00
parent 48b97a4c41
commit ad373101d6
18 changed files with 75 additions and 62 deletions

View File

@@ -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);

View File

@@ -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)
{