projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
From http://www.jwz.org/xscreensaver/xscreensaver-5.15.tar.gz
[xscreensaver]
/
utils
/
minixpm.c
diff --git
a/utils/minixpm.c
b/utils/minixpm.c
index 7ec5611d644a7b0c5bbffad9e8dd64d4e6b20e27..247eca89efc723ac05c7455e855ffaab1a91c317 100644
(file)
--- a/
utils/minixpm.c
+++ b/
utils/minixpm.c
@@
-76,6
+76,8
@@
minixpm_to_ximage (Display *dpy, Visual *visual, Colormap colormap, int depth,
unsigned long *pixels;
XImage *ximage = 0;
+
+ memset (cmap, 0, sizeof(cmap)); /* avoid warnings */
if (4 != sscanf ((const char *) *data,
"%d %d %d %d %c", &w, &h, &ncolors, &nbytes, &c)) {