diff --git a/plug-ins/common/file-jp2-load.c b/plug-ins/common/file-jp2-load.c index 0e2710058841cb5ba54f4965261fed82b90b9507..4ffe015f6e54e92d3504e638ae5a5304212f00e7 100644 --- a/plug-ins/common/file-jp2-load.c +++ b/plug-ins/common/file-jp2-load.c @@ -1242,7 +1242,7 @@ load_image (GFile *file, goto out; } } - else if ((image->color_space == OPJ_CLRSPC_CMYK)) + else if (image->color_space == OPJ_CLRSPC_CMYK) { if (! color_cmyk_to_rgb (image)) { diff --git a/plug-ins/file-psd/psd-image-res-load.c b/plug-ins/file-psd/psd-image-res-load.c index 86a1f0f6602ca515c59889d5c1274bf6577b60d4..05462671ce3120e31717ffda2d02d4b33d8e1eb0 100644 --- a/plug-ins/file-psd/psd-image-res-load.c +++ b/plug-ins/file-psd/psd-image-res-load.c @@ -797,7 +797,7 @@ load_resource_1022 (const PSDimageres *res_a, GError **error) { /* Load quick mask info */ - gboolean quick_mask_empty; /* Quick mask initially empty */ + gboolean quick_mask_empty = 0; /* Quick mask initially empty */ IFDBG(2) g_debug ("Process image resource block: 1022: Quick Mask"); @@ -1337,7 +1337,7 @@ load_resource_1069 (const PSDimageres *res_a, GInputStream *input, GError **error) { - guint16 layer_count; + guint16 layer_count = 0; gint i; IFDBG(2) g_debug ("Process image resource block: 1069: Layer Selection ID(s)"); @@ -1357,7 +1357,7 @@ load_resource_1069 (const PSDimageres *res_a, for (i = 0; i < layer_count; i++) { - guint32 layer_id; + guint32 layer_id = 0; if (psd_read (input, &layer_id, 4, error) < 4) { @@ -1494,7 +1494,7 @@ load_resource_2000 (const PSDimageres *res_a, gint32 x[3]; gint32 y[3]; GimpVectors *vectors = NULL; - gint16 type; + gint16 type = 0; gint16 init_fill; gint16 num_rec; gint16 path_rec; diff --git a/plug-ins/file-psd/psd-layer-res-load.c b/plug-ins/file-psd/psd-layer-res-load.c index 3e36c2733f0aa4099ecd7c932dd85be11d2d8638..d7eaf08b313c65588e4b5dfca0f472e789de4fac 100644 --- a/plug-ins/file-psd/psd-layer-res-load.c +++ b/plug-ins/file-psd/psd-layer-res-load.c @@ -438,17 +438,17 @@ load_resource_ltyp (const PSDlayerres *res_a, GError **error) { /* Load type tool layer */ - gint16 version; - gint16 text_desc_vers; - gint32 desc_version; + gint16 version = 0; + gint16 text_desc_vers = 0; + gint32 desc_version = 0; gint32 read_len; gint32 write_len; - guint64 t_xx; - guint64 t_xy; - guint64 t_yx; - guint64 t_yy; - guint64 t_tx; - guint64 t_ty; + guint64 t_xx = 0; + guint64 t_xy = 0; + guint64 t_yx = 0; + guint64 t_yy = 0; + guint64 t_tx = 0; + guint64 t_ty = 0; gchar *classID; static gboolean msg_flag = FALSE; @@ -589,7 +589,7 @@ load_resource_lsct (const PSDlayerres *res_a, * Type 1: Open folder * Type 2: Closed folder * Type 3: End of most recent group */ - guint32 type; + guint32 type = 0; IFDBG(2) g_debug ("Process layer resource block %.4s: Section divider", res_a->key); if (psd_read (input, &type, 4, error) < 4) @@ -637,7 +637,7 @@ load_resource_lrfx (const PSDlayerres *res_a, GError **error) { gint16 version; - gint16 count; + gint16 count = 0; gchar signature[4]; gchar effectname[4]; gint i; @@ -729,7 +729,7 @@ load_resource_lrfx (const PSDlayerres *res_a, } else if (memcmp (effectname, "oglw", 4) == 0) { - gint32 size; + gint32 size = 0; gint32 ver; gint32 blur; gint32 intensity; @@ -773,7 +773,7 @@ load_resource_lrfx (const PSDlayerres *res_a, } else if (memcmp (effectname, "iglw", 4) == 0) { - gint32 size; + gint32 size = 0; gint32 ver; gint32 blur; gint32 intensity; @@ -831,7 +831,7 @@ load_resource_lrfx (const PSDlayerres *res_a, } else if (memcmp (effectname, "bevl", 4) == 0) { - gint32 size; + gint32 size = 0; gint32 ver; gint32 angle; gint32 strength; @@ -947,7 +947,7 @@ load_resource_lyvr (const PSDlayerres *res_a, GInputStream *input, GError **error) { - gint32 version; + gint32 version = 0; IFDBG(2) g_debug ("Process layer resource block %.4s: layer version", res_a->key); diff --git a/plug-ins/file-psd/psd-load.c b/plug-ins/file-psd/psd-load.c index a72fe688cefec93d99dfc7f87ccedc5249f62a50..985217195c002e132fff3b908789229127e95e09 100644 --- a/plug-ins/file-psd/psd-load.c +++ b/plug-ins/file-psd/psd-load.c @@ -434,8 +434,8 @@ read_color_mode_block (PSDimage *img_a, GInputStream *input, GError **error) { - static guchar cmap[] = { 0, 0, 0, 255, 255, 255 }; - guint32 block_len; + static guchar cmap[] = { 0, 0, 0, 255, 255, 255 }; + guint32 block_len = 0; img_a->color_map_entries = 0; img_a->color_map_len = 0; @@ -522,7 +522,7 @@ read_image_resource_block (PSDimage *img_a, GInputStream *input, GError **error) { - guint64 block_len; + guint64 block_len = 0; guint64 block_end; if (psd_read (input, &block_len, 4, error) < 4) @@ -2309,7 +2309,7 @@ add_merged_image (GimpImage *image, PSDchannel chn_a[MAX_CHANNELS]; gchar *alpha_name; guchar *pixels; - guint16 comp_mode; + guint16 comp_mode = 0; guint16 base_channels; guint16 extra_channels; guint16 total_channels; diff --git a/plug-ins/file-psd/psd-thumb-load.c b/plug-ins/file-psd/psd-thumb-load.c index b6cc262dd08e181a32113d25ab767ff30a0c1985..742af49d68babe938f22e9a30308f4da2476c534 100644 --- a/plug-ins/file-psd/psd-thumb-load.c +++ b/plug-ins/file-psd/psd-thumb-load.c @@ -157,7 +157,7 @@ read_header_block (PSDimage *img_a, GInputStream *input, GError **error) { - guint16 version; + guint16 version = 0; gchar sig[4]; gchar buf[6]; @@ -209,7 +209,7 @@ read_color_mode_block (PSDimage *img_a, GInputStream *input, GError **error) { - guint64 block_len; + guint64 block_len = 0; guint64 block_start; guint64 block_end; @@ -237,7 +237,7 @@ read_image_resource_block (PSDimage *img_a, GInputStream *input, GError **error) { - guint64 block_len; + guint64 block_len = 0; guint64 block_end; if (psd_read (input, &block_len, 4, error) < 4) diff --git a/plug-ins/file-tiff/file-tiff-load.c b/plug-ins/file-tiff/file-tiff-load.c index c26e7941689eef7b9aef5bae0a8144559acd39f0..9ef94ec81cb37217eb1eeda0c651d6d094849b2a 100644 --- a/plug-ins/file-tiff/file-tiff-load.c +++ b/plug-ins/file-tiff/file-tiff-load.c @@ -1209,10 +1209,10 @@ load_image (GFile *file, /* any resolution info in the file? */ { - gfloat xres = 72.0; - gfloat yres = 72.0; - gushort read_unit; - GimpUnit unit = GIMP_UNIT_PIXEL; /* invalid unit */ + gfloat xres = 72.0; + gfloat yres = 72.0; + gushort read_unit = 0; + GimpUnit unit = GIMP_UNIT_PIXEL; /* invalid unit */ if (TIFFGetField (tif, TIFFTAG_XRESOLUTION, &xres)) {