1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
$NetBSD: patch-ag,v 1.1 2007/11/03 16:12:48 drochner Exp $
--- backend/comics/comics-document.c.orig 2007-09-17 18:19:23.000000000 +0200
+++ backend/comics/comics-document.c
@@ -106,7 +106,7 @@ comics_document_load (EvDocument *docume
{
ComicsDocument *comics_document = COMICS_DOCUMENT (document);
GSList *supported_extensions;
- gchar *list_files_command = NULL, *stdout, *quoted_file, *mime_type;
+ gchar *list_files_command = NULL, *xstdout, *quoted_file, *mime_type;
gchar **cbr_files;
gboolean success;
int i, retval;
@@ -137,7 +137,7 @@ comics_document_load (EvDocument *docume
/* Get list of files in archive */
success = g_spawn_command_line_sync (list_files_command,
- &stdout, NULL, &retval, error);
+ &xstdout, NULL, &retval, error);
g_free (list_files_command);
if (!success) {
@@ -152,7 +152,7 @@ comics_document_load (EvDocument *docume
return FALSE;
}
- cbr_files = g_strsplit (stdout, "\n", 0);
+ cbr_files = g_strsplit (xstdout, "\n", 0);
supported_extensions = get_supported_image_extensions ();
for (i = 0; cbr_files[i] != NULL; i++) {
gchar *suffix = g_strrstr (cbr_files[i], ".");
@@ -173,7 +173,7 @@ comics_document_load (EvDocument *docume
g_free (suffix);
}
- g_free (stdout);
+ g_free (xstdout);
g_free (mime_type);
g_strfreev (cbr_files);
g_slist_foreach (supported_extensions, (GFunc) g_free, NULL);
|