Initialize the loader and rsvg_handle variables, otherwise we'll b0rk if

2002-06-20  Federico Mena Quintero  <federico@ximian.com>

	* viewer/eog-image.c (load_image_from_file): Initialize the loader
	and rsvg_handle variables, otherwise we'll b0rk if we can't open
	the URI.  Fixes #85263.
This commit is contained in:
Federico Mena Quintero 2002-06-20 21:43:26 +00:00 committed by Federico Mena Quintero
parent d76aecda80
commit f326543150
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2002-06-20 Federico Mena Quintero <federico@ximian.com>
* viewer/eog-image.c (load_image_from_file): Initialize the loader
and rsvg_handle variables, otherwise we'll b0rk if we can't open
the URI. Fixes #85263.
2002-06-13 Federico Mena Quintero <federico@ximian.com>
Fixes #85216.

View file

@ -288,6 +288,9 @@ load_image_from_file (BonoboPersistFile *pf, const CORBA_char *text_uri,
uri = gnome_vfs_uri_new (text_uri);
loader = NULL;
rsvg_handle = NULL;
/* open uri */
result = gnome_vfs_open_uri (&handle, uri, GNOME_VFS_OPEN_READ);
if (result != GNOME_VFS_OK)