Fix crash in atspi_image_get_image_description
authorDan Winship <danw@gnome.org>
Fri, 21 Jan 2011 16:27:16 +0000 (11:27 -0500)
committerMike Gorse <mgorse@novell.com>
Fri, 21 Jan 2011 22:53:34 +0000 (16:53 -0600)
If the remote object didn't define this property then the function
would return stack garbage, which the caller would eventually try to
free.

https://bugzilla.gnome.org/show_bug.cgi?id=640198

atspi/atspi-image.c

index 75c3553..1d9a2b5 100644 (file)
@@ -34,7 +34,7 @@
 gchar *
 atspi_image_get_image_description (AtspiImage *obj, GError **error)
 {
-  char *retval;
+  char *retval = NULL;
 
   g_return_val_if_fail (obj != NULL, NULL);