[gnome-media] Fix badly initialised GError



commit f10b61504ef7d5ea815e46896073f5203e79fd24
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Aug 7 16:38:35 2009 +0100

    Fix badly initialised GError
    
    Which could cause a crash when the stack isn't zero'ed properly.

 sound-theme/sound-theme-file-utils.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/sound-theme/sound-theme-file-utils.c b/sound-theme/sound-theme-file-utils.c
index b23f5be..962b617 100644
--- a/sound-theme/sound-theme-file-utils.c
+++ b/sound-theme/sound-theme-file-utils.c
@@ -148,7 +148,7 @@ custom_theme_dir_is_empty (void)
         gboolean         is_empty;
         GFileEnumerator *enumerator;
         GFileInfo       *info;
-        GError          *error;
+        GError          *error = NULL;
 
         dir = custom_theme_dir_path (NULL);
         file = g_file_new_for_path (dir);



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