[librsvg] rsvg-view: Always initialise variable



commit 7624bfc042e0b359ad0f4c1821d8312243f84587
Author: Christian Persch <chpe gnome org>
Date:   Fri Jan 13 01:37:16 2012 +0100

    rsvg-view: Always initialise variable

 test-display.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/test-display.c b/test-display.c
index 1676fa3..3f86768 100644
--- a/test-display.c
+++ b/test-display.c
@@ -690,6 +690,8 @@ main (int argc, char **argv)
 
     rsvg_set_default_dpi_x_y (dpi_x, dpi_y);
 
+    compressed = FALSE;
+
     if (from_stdin) {
 #if 0 // defined (G_OS_UNIX)
         input = g_unix_input_stream_new (STDIN_FILENO, FALSE);
@@ -699,8 +701,6 @@ main (int argc, char **argv)
                              "Reading from stdin not supported");
 #endif
         base_file = NULL;
-
-        compressed = FALSE;
     } else {
         file = g_file_new_for_commandline_arg (args[0]);
         input = (GInputStream *) g_file_read (file, NULL, &err);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]