[gnome-builder/gnome-builder-3-26] git: fix error propagation
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-26] git: fix error propagation
- Date: Tue, 12 Sep 2017 23:18:01 +0000 (UTC)
commit 5b0c1ab162179936d968be2f3225b1dbeeda7808
Author: Christian Hergert <chergert redhat com>
Date: Tue Sep 12 16:16:09 2017 -0700
git: fix error propagation
plugins/git/ide-git-clone-widget.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/plugins/git/ide-git-clone-widget.c b/plugins/git/ide-git-clone-widget.c
index 504bc64..507b24a 100644
--- a/plugins/git/ide-git-clone-widget.c
+++ b/plugins/git/ide-git-clone-widget.c
@@ -467,7 +467,7 @@ ide_git_clone_widget_clone_finish (IdeGitCloneWidget *self,
GAsyncResult *result,
GError **error)
{
- GError *local_error = NULL;
+ g_autoptr(GError) local_error = NULL;
gboolean ret;
g_return_val_if_fail (IDE_IS_GIT_CLONE_WIDGET (self), FALSE);
@@ -484,7 +484,8 @@ ide_git_clone_widget_clone_finish (IdeGitCloneWidget *self,
gtk_widget_set_sensitive (GTK_WIDGET (self->clone_location_entry), TRUE);
gtk_widget_set_sensitive (GTK_WIDGET (self->clone_uri_entry), TRUE);
- g_propagate_error (error, local_error);
+ if (local_error != NULL)
+ g_propagate_error (error, g_steal_pointer (&local_error));
return ret;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]