[dasher] GError must be initialised to NULL.



commit 90d1eb9829550f2b61d4399e84eaedc558263789
Author: Patrick Welche <prlw1 cam ac uk>
Date:   Thu Jul 9 12:44:37 2009 +0100

    GError must be initialised to NULL.

 ChangeLog                           |    1 +
 Src/Gtk2/dasher_editor_internal.cpp |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 5ec6b2a..55be7f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 
 	* Make the alphabet's dtd match the parser more closely.
 	* Clean up training text.
+	* dasher_editor_internal.cpp: GError must be initialised to NULL.
 
 2009-07-07  Patrick Welche <prlw1 cam ac uk>
 
diff --git a/Src/Gtk2/dasher_editor_internal.cpp b/Src/Gtk2/dasher_editor_internal.cpp
index 85e34cd..36a6694 100644
--- a/Src/Gtk2/dasher_editor_internal.cpp
+++ b/Src/Gtk2/dasher_editor_internal.cpp
@@ -1493,7 +1493,7 @@ dasher_editor_internal_gvfs_save_file(DasherEditor *pSelf, const char *uri, gcha
 {
   GFile *file;
   GFileOutputStream *write_handle;
-  GError *error;
+  GError *error = NULL;
   gssize bytes_written;
 
   file = g_file_new_for_uri (uri);



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