diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-26 10:55:39 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-26 10:55:39 +0100 |
commit | 82a8c5fd9a85b5b66b2b6f39af0750764066dba3 (patch) | |
tree | 9d87debd9c4171a184079475807de01d6ba5324f /hwpfilter/source | |
parent | 3bdd5bd7a5145b3c5aed744dac221bb1ab119bda (diff) |
coverity#707891 Uninitialized pointer field
Change-Id: Id717454935e1b9426f59061ed95364bf69408232
Diffstat (limited to 'hwpfilter/source')
-rw-r--r-- | hwpfilter/source/hbox.cxx | 32 | ||||
-rw-r--r-- | hwpfilter/source/hbox.h | 12 |
2 files changed, 37 insertions, 7 deletions
diff --git a/hwpfilter/source/hbox.cxx b/hwpfilter/source/hbox.cxx index ef8a8d46fbb5..c3c7eca4f881 100644 --- a/hwpfilter/source/hbox.cxx +++ b/hwpfilter/source/hbox.cxx @@ -289,9 +289,7 @@ hchar_string DateCode::GetString() return ret; } - // tab(9) - Tab::Tab() : HBox(CH_TAB) , width(0) @@ -300,15 +298,35 @@ Tab::Tab() { } - // floating box -FBox::FBox(hchar hch):HBox(hch) +FBox::FBox(hchar hch) + : HBox(hch) + , zorder(0) + , option(0) + , ctrl_ch(0) + , box_xs(0) + , box_ys(0) + , cap_xs(0) + , cap_ys(0) + , xs(0) + , ys(0) + , cap_margin(0) + , xpos_type(0) + , ypos_type(0) + , smart_linesp(0) + , boundsy(0) + , boundey(0) + , boundx(0) + , draw(0) + , pgx(0) + , pgy(0) + , pgno(0) + , showpg(0) + , prev(NULL) + , next(NULL) { - prev = next = 0; - zorder = 0; } - FBox::~FBox() { } 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)); + } }; /** |