Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit cf4fdb9

Browse files
committed
[CID 16252] Add default constructor for MCCustomPrinterDocument
Ensure that all members for `MCCustomPrinterDocument` are properly initialised by default. Coverity-ID: 16252
1 parent 36bb8a4 commit cf4fdb9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

engine/include/customprinter.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ along with LiveCode. If not see <http://www.gnu.org/licenses/>. */
3535

3636
struct MCCustomPrinterDocument
3737
{
38+
MCCustomPrinterDocument()
39+
: title(nullptr), filename(nullptr),
40+
option_count(0),
41+
option_keys(nullptr), option_values(nullptr)
42+
{}
43+
3844
const char *title;
3945
const char *filename;
4046

0 commit comments

Comments
 (0)