]> www.fi.muni.cz Git - evince.git/commitdiff
[comics] Do not initalize GPid's with -1
authorHib Eris <hib@hiberis.nl>
Mon, 21 Dec 2009 11:49:11 +0000 (12:49 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Tue, 22 Dec 2009 16:31:20 +0000 (17:31 +0100)
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

backend/comics/comics-document.c

index 8928422830ed283f58d7da54e3853e5aefc9ea46..9f657c24e1be667943bef0ce3e49532722267ef1 100644 (file)
@@ -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;