[gnome-builder/wip/chergert/layout] clang: fix uninitialized return
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/layout] clang: fix uninitialized return
- Date: Wed, 12 Jul 2017 20:57:32 +0000 (UTC)
commit 452792e2b8eb3100f63a1416a29e5b4d84fb326f
Author: Christian Hergert <chergert redhat com>
Date: Wed Jul 12 13:56:38 2017 -0700
clang: fix uninitialized return
plugins/clang/ide-clang-translation-unit.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/clang/ide-clang-translation-unit.c b/plugins/clang/ide-clang-translation-unit.c
index abc1646..222010d 100644
--- a/plugins/clang/ide-clang-translation-unit.c
+++ b/plugins/clang/ide-clang-translation-unit.c
@@ -1213,7 +1213,7 @@ ide_clang_translation_unit_find_nearest_scope (IdeClangTranslationUnit *self,
enum CXCursorKind kind;
IdeSymbolKind symkind;
IdeSymbolFlags symflags;
- IdeSymbol *ret;
+ IdeSymbol *ret = NULL;
CXFile file;
IdeFile *ifile;
guint line;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]