summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2012-01-13 01:37:16 +0100
committerChristian Persch <chpe@gnome.org>2012-01-13 01:37:16 +0100
commit7624bfc042e0b359ad0f4c1821d8312243f84587 (patch)
tree1f0c3907c2f9c889cc30638318c6840a58c3ef50
parent793684eedda01272dda744bfbbaaedd875b30711 (diff)
downloadlibrsvg-7624bfc042e0b359ad0f4c1821d8312243f84587.tar.gz
rsvg-view: Always initialise variable
-rw-r--r--test-display.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test-display.c b/test-display.c
index 1676fa3f..3f86768d 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);