[gnome-builder] clang: fix uninitialized return
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] clang: fix uninitialized return
- Date: Wed, 19 Jul 2017 11:17:02 +0000 (UTC)
commit 2b2f862a2534fa3a9626425432f0650840acaf34
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]