diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-10 14:03:22 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-10 21:12:56 +0100 |
commit | cbe85c63d64d952696aa2643a07ce3af29555c57 (patch) | |
tree | bdb76b7422698a5bb47bde0be43ba6092605b625 /hwpfilter/source/hinfo.h | |
parent | coverity#707899 Uninitialized pointer field (diff) | |
download | core-cbe85c63d64d952696aa2643a07ce3af29555c57.tar.gz core-cbe85c63d64d952696aa2643a07ce3af29555c57.zip |
coverity#707899 Uninitialized pointer field
Change-Id: Iacdd82589eb56bda653ceb84a0a6a2677f0aabd6
Diffstat (limited to 'hwpfilter/source/hinfo.h')
-rw-r--r-- | hwpfilter/source/hinfo.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/hwpfilter/source/hinfo.h b/hwpfilter/source/hinfo.h index 0b1a45e074d0..d3591b5ec68d 100644 --- a/hwpfilter/source/hinfo.h +++ b/hwpfilter/source/hinfo.h @@ -21,6 +21,7 @@ #define INCLUDED_HWPFILTER_SOURCE_HINFO_H #include "hwplib.h" +#include "string.h" #define CHAIN_MAX_PATH 40 #define ANNOTATION_LEN 24 @@ -87,12 +88,18 @@ struct PaperBackInfo /** * Information of printing for chained page */ -typedef struct +struct DocChainInfo { unsigned char chain_page_no; unsigned char chain_footnote_no; unsigned char chain_filename[CHAIN_MAX_PATH]; -} DocChainInfo; + DocChainInfo() + : chain_page_no(0) + , chain_footnote_no(0) + { + memset(chain_filename, 0, sizeof(chain_filename)); + } +}; /* ???? ???? */ /** |