[gnome-builder] code-index: don't mix goto with autoptr scope
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] code-index: don't mix goto with autoptr scope
- Date: Tue, 31 Jul 2018 08:22:50 +0000 (UTC)
commit 3c24332e9938c196c18765a367ca7c98763e8460
Author: Christian Hergert <chergert redhat com>
Date: Tue Jul 31 01:21:42 2018 -0700
code-index: don't mix goto with autoptr scope
It's non-obvious what happens here, so keep it obvious.
src/plugins/code-index/ide-code-index-builder.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/plugins/code-index/ide-code-index-builder.c b/src/plugins/code-index/ide-code-index-builder.c
index 0ebb42374..0fd1f2ec4 100644
--- a/src/plugins/code-index/ide-code-index-builder.c
+++ b/src/plugins/code-index/ide-code-index-builder.c
@@ -720,7 +720,7 @@ get_changes_worker (IdeTask *task,
g_queue_clear (&files);
if (ide_task_return_error_if_cancelled (task))
- goto cancelled;
+ break;
}
cancelled:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]