kwo pushed a commit to branch master.

http://git.enlightenment.org/legacy/imlib2.git/commit/?id=5a7644a0c039da9284019d1b93c036efd1bb5d26

commit 5a7644a0c039da9284019d1b93c036efd1bb5d26
Author: Kim Woelders <k...@woelders.dk>
Date:   Wed Mar 7 16:30:51 2018 +0100

    XPM loader: Fix potential use of uninitialized value (T6746)
    
    https://phab.enlightenment.org/T6746
    https://bugs.debian.org/868151
---
 src/modules/loaders/loader_xpm.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/modules/loaders/loader_xpm.c b/src/modules/loaders/loader_xpm.c
index 3ba146a..0a8e512 100644
--- a/src/modules/loaders/loader_xpm.c
+++ b/src/modules/loaders/loader_xpm.c
@@ -145,6 +145,8 @@ load(ImlibImage * im, ImlibProgressFunction progress, char 
progress_granularity,
    cmap = NULL;
    w = 10;
    h = 10;
+   ncolors = 0;
+   cpp = 0;
    ptr = NULL;
    end = NULL;
    c = ' ';

-- 


Reply via email to