Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
  • 2 commits
  • 1 file changed
  • 0 comments
  • 1 contributor

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  src/pixbuf/loaderjpeg.c
2  src/pixbuf/loaderjpeg.c
@@ -18,6 +18,7 @@
18 18
 #include <stdlib.h>
19 19
 #include <stdio.h>
20 20
 #include <setjmp.h>
  21
+#include <string.h>
21 22
 #include <jpeglib.h>
22 23
 
23 24
 #include "pixbuf.h"
@@ -75,6 +76,7 @@ struct pixbuf *pixbuf_load_jpeg(char *filename)
75 76
 
76 77
 	ret = pixbuf_new(cinfo.image_width, cinfo.image_height);
77 78
 	if(ret == NULL) goto free5;
  79
+	ret->filename = strdup(filename);
78 80
 	if(!pixbuf_dither(ret->pixels, row_pointers, cinfo.image_width, cinfo.image_height, 0)) {
79 81
 		pixbuf_dec_ref(ret);
80 82
 		ret = NULL;

No commit comments for this range

Something went wrong with that request. Please try again.