[file-roller: 6/123] initialize the error to NULL



commit 0a6bb36849f212dd9b47287ede5938e38705d8fa
Author: Paolo Bacchilega <paobac src gnome org>
Date:   Tue Jul 17 19:59:02 2012 +0200

    initialize the error to NULL

 src/fr-window.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index 566479f..742b569 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -7986,7 +7986,7 @@ paste_from_archive_paste_clipboard_ready_cb (GObject      *source_object,
 					     gpointer      user_data)
 {
 	FrWindow *window = user_data;
-	GError   *error;
+	GError   *error = NULL;
 
 	fr_archive_operation_finish (FR_ARCHIVE (source_object), result, &error);
 	_paste_from_archive_operation_completed (window, FR_ACTION_ADDING_FILES, error);
@@ -8030,7 +8030,7 @@ paste_from_archive_remove_ready_cb (GObject      *source_object,
 				    gpointer      user_data)
 {
 	FrWindow *window = user_data;
-	GError   *error;
+	GError   *error = NULL;
 
 	if (! fr_archive_operation_finish (FR_ARCHIVE (source_object), result, &error)) {
 		_paste_from_archive_operation_completed (window, FR_ACTION_DELETING_FILES, error);
@@ -8048,7 +8048,7 @@ paste_from_archive_extract_ready_cb (GObject      *source_object,
 				     gpointer      user_data)
 {
 	FrWindow *window = user_data;
-	GError   *error;
+	GError   *error = NULL;
 
 	if (! fr_archive_operation_finish (FR_ARCHIVE (source_object), result, &error)) {
 		_paste_from_archive_operation_completed (window, FR_ACTION_EXTRACTING_FILES, error);
@@ -8363,7 +8363,7 @@ update_files_ready_cb (GObject      *source_object,
 		       gpointer      user_data)
 {
 	FrWindow *window = user_data;
-	GError   *error;
+	GError   *error = NULL;
 
 	fr_archive_operation_finish (FR_ARCHIVE (source_object), result, &error);
 
@@ -8575,7 +8575,7 @@ open_files_extract_ready_cb (GObject      *source_object,
 			     gpointer      user_data)
 {
 	OpenFilesData *odata = user_data;
-	GError        *error;
+	GError        *error = NULL;
 
 	if (! fr_archive_operation_finish (FR_ARCHIVE (source_object), result, &error)) {
 		_archive_operation_completed (odata->window, FR_ACTION_EXTRACTING_FILES, error);



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