summaryrefslogtreecommitdiff
path: root/hwpfilter/source/hbox.h
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-26 10:55:39 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-26 10:55:39 +0100
commit82a8c5fd9a85b5b66b2b6f39af0750764066dba3 (patch)
tree9d87debd9c4171a184079475807de01d6ba5324f /hwpfilter/source/hbox.h
parent3bdd5bd7a5145b3c5aed744dac221bb1ab119bda (diff)
coverity#707891 Uninitialized pointer field
Change-Id: Id717454935e1b9426f59061ed95364bf69408232
Diffstat (limited to 'hwpfilter/source/hbox.h')
-rw-r--r--hwpfilter/source/hbox.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/hwpfilter/source/hbox.h b/hwpfilter/source/hbox.h
index 32ffa58e2651..c18be55ff994 100644
--- a/hwpfilter/source/hbox.h
+++ b/hwpfilter/source/hbox.h
@@ -288,6 +288,18 @@ struct FBoxStyle
void *cell;
+ FBoxStyle()
+ : anchor_type(0)
+ , txtflow(0)
+ , xpos(0)
+ , ypos(0)
+ , boxnum(0)
+ , boxtype(0)
+ , cap_len(0)
+ , cell(NULL)
+ {
+ memset(margin, 0, sizeof(margin));
+ }
};
/**