aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorJan Djärv2014-02-12 08:50:24 +0100
committerJan Djärv2014-02-12 08:50:24 +0100
commita9a61c77b3effd0e00b20ff714e430ee6b2a937a (patch)
tree03264707ba5817d917e2682d8679d6cb9d23cff7 /src/image.c
parent5af9fbadd1956fc2c757588763b16031550010f8 (diff)
downloademacs-a9a61c77b3effd0e00b20ff714e430ee6b2a937a.tar.gz
emacs-a9a61c77b3effd0e00b20ff714e430ee6b2a937a.zip
* image.c (pbm_load): Set to NO_PIXMAP on error.
Fixes: debbugs:16683
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/image.c b/src/image.c
index 706745fb479..e53ad0b4a30 100644
--- a/src/image.c
+++ b/src/image.c
@@ -5215,6 +5215,7 @@ pbm_load (struct frame *f, struct image *img)
5215 image_error ("Not a PBM image: `%s'", img->spec, Qnil); 5215 image_error ("Not a PBM image: `%s'", img->spec, Qnil);
5216 error: 5216 error:
5217 xfree (contents); 5217 xfree (contents);
5218 img->pixmap = NO_PIXMAP;
5218 return 0; 5219 return 0;
5219 } 5220 }
5220 5221