Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
authorHib Eris <hib@hiberis.nl>2009-12-21 11:49:11 (GMT)
committer Carlos Garcia Campos <carlosgc@gnome.org>2009-12-22 16:31:20 (GMT)
commit7d59434cbd7ea6bdd42a6f3223a47cbb06ba4069 (patch)
treebefb7e271664c6aa160038fd057808fbd71a38f6 /backend
parent9cf5791a53cbd36dc9585f0cd641eb1438f738a6 (diff)
[comics] Do not initalize GPid's with -1
On Windows, a GPid is a pointer, not an integer. Initializing it with "-1" causes warnings on Windows and is unnecessay on Unix, so it is better to not do that. See bgo#605146
Diffstat (limited to 'backend')
-rw-r--r--backend/comics/comics-document.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/comics/comics-document.c b/backend/comics/comics-document.c
index 8928422..9f657c2 100644
--- a/backend/comics/comics-document.c
+++ b/backend/comics/comics-document.c
@@ -504,7 +504,7 @@ comics_document_get_page_size (EvDocument *document,
guchar buf[1024];
gboolean success, got_size = FALSE;
gint outpipe = -1;
- GPid child_pid = -1;
+ GPid child_pid;
gssize bytes;
GdkPixbuf *pixbuf;
gchar *filename;
@@ -579,7 +579,7 @@ comics_document_render_pixbuf (EvDocument *document,
guchar buf[4096];
gboolean success;
gint outpipe = -1;
- GPid child_pid = -1;
+ GPid child_pid;
gssize bytes;
gint width, height;
gchar *filename;