Lines 1-5
Link Here
|
1 |
--- src/image_cache.c.orig 2003-08-08 09:17:58.000000000 +0200 |
1 |
--- src/image_cache.c.orig 2013-11-07 19:24:24.056322038 +0400 |
2 |
+++ src/image_cache.c 2012-05-03 23:39:36.000000000 +0200 |
2 |
+++ src/image_cache.c 2013-11-07 19:32:26.759288924 +0400 |
|
|
3 |
@@ -356,7 +356,7 @@ |
4 |
save_file = NULL; |
5 |
cl = NULL; |
6 |
|
7 |
- if (tp->cache.cache_dir == NULL) { return; } |
8 |
+ if (tp->cache.cache_dir == NULL) { return FALSE; } |
9 |
|
10 |
save_file = (gchar*)malloc(sizeof(gchar) * |
11 |
(strlen(tp->cache.cache_dir) + |
12 |
@@ -761,9 +761,9 @@ |
13 |
/* Initialize the local variables. */ |
14 |
png_text_filename = buffer = NULL; |
15 |
|
16 |
- if (pixbuf == NULL) { return; } |
17 |
- if (filename == NULL) { return; } |
18 |
- if (strcmp(filename, "") == 0) { return; } |
19 |
+ if (pixbuf == NULL) { return FALSE; } |
20 |
+ if (filename == NULL) { return FALSE; } |
21 |
+ if (strcmp(filename, "") == 0) { return FALSE; } |
22 |
|
23 |
fp = fopen (filename, "wb"); |
24 |
if (fp == NULL) { return FALSE; } |
3 |
@@ -782,7 +782,7 @@ |
25 |
@@ -782,7 +782,7 @@ |
4 |
return FALSE; |
26 |
return FALSE; |
5 |
} |
27 |
} |
Lines 9-11
Link Here
|
9 |
png_destroy_write_struct(&png_ptr, &info_ptr); |
31 |
png_destroy_write_struct(&png_ptr, &info_ptr); |
10 |
fclose (fp); |
32 |
fclose (fp); |
11 |
return FALSE; |
33 |
return FALSE; |
|
|
34 |
@@ -839,7 +839,7 @@ |
35 |
/* expand RGB to RGBA using an opaque alpha value */ |
36 |
gint x; |
37 |
gchar *buffer_ptr = buffer; |
38 |
- gchar *source_ptr = pixels; |
39 |
+ guchar *source_ptr = pixels; |
40 |
for (x = 0; x < width; x++) { |
41 |
*buffer_ptr++ = *source_ptr++; |
42 |
*buffer_ptr++ = *source_ptr++; |