summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-02-10 15:14:11 +0300
committermonsta <[email protected]>2016-02-10 15:14:11 +0300
commite014313711b0dff74764e6c7fd7e5d093a1abe98 (patch)
treea263d98e7f4e36786224cbcdeacf737b8c385ad5
parentb7849cc5b6e7fd741ef04e334f586266a444ef8a (diff)
downloadeom-e014313711b0dff74764e6c7fd7e5d093a1abe98.tar.bz2
eom-e014313711b0dff74764e6c7fd7e5d093a1abe98.tar.xz
properly zero-init a variable
from https://git.gnome.org/browse/eog/commit/?id=11f05ec911b4208faa8f00ecd9f4830ca39fcb25
-rw-r--r--src/eom-image-jpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eom-image-jpeg.c b/src/eom-image-jpeg.c
index 7eb24f3..21f67ff 100644
--- a/src/eom-image-jpeg.c
+++ b/src/eom-image-jpeg.c
@@ -121,6 +121,8 @@ init_transform_info (EomImage *image, jpeg_transform_info *info)
g_return_if_fail (EOM_IS_IMAGE (image));
+ memset (info, 0x0, sizeof (jpeg_transform_info));
+
priv = image->priv;
if (priv->trans != NULL && priv->trans_autorotate != NULL) {