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

@@ -2992,7 +2992,7 @@ obj_set_attachment(
int offset
)
{
ABAttachment *attachment;
ABAttachment *attachment = NULL;
verify_for_write(obj);
if (obj->attachments == NULL)
@@ -3012,6 +3012,8 @@ obj_set_attachment(
case AB_CP_EAST:
attachment = &(obj->attachments->east);
break;
default:
return 0;
}
attachment->type = type;
attachment->value = value;