From bb0741dc6f5a538788f9a88edba0db6a928cc6c7 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 20 Apr 2021 12:59:19 -0400 Subject: [PATCH] Add missing initializers --- src/zm_image.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/zm_image.cpp b/src/zm_image.cpp index 291974267..624b8cb40 100644 --- a/src/zm_image.cpp +++ b/src/zm_image.cpp @@ -106,12 +106,22 @@ void Image::update_function_pointers() { } // This constructor is not used anywhere -Image::Image() { +Image::Image() : + delta8_rgb(&std_delta8_rgb), + delta8_bgr(&std_delta8_bgr), + delta8_rgba(&std_delta8_rgba), + delta8_bgra(&std_delta8_bgra), + delta8_argb(&std_delta8_argb), + delta8_abgr(&std_delta8_abgr), + delta8_gray8(&std_delta8_gray8), + blend(&std_blend) +{ if ( !initialised ) Initialise(); width = 0; linesize = 0; height = 0; + padding = 0; pixels = 0; colours = 0; subpixelorder = 0; @@ -130,6 +140,7 @@ Image::Image(const char *filename) { width = 0; linesize = 0; height = 0; + padding = 0; pixels = 0; colours = 0; subpixelorder = 0;