[anjuta] language-support-cpp-java: Fix crash due to uninitialized variable



commit d6f742ee53f56ec910bd3de7a4e3105c2c94b179
Author: Johannes Schmid <jhs gnome org>
Date:   Thu Mar 17 16:27:29 2011 -0400

    language-support-cpp-java: Fix crash due to uninitialized variable

 plugins/language-support-cpp-java/plugin.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/language-support-cpp-java/plugin.c b/plugins/language-support-cpp-java/plugin.c
index 94c83e6..afaa2d5 100644
--- a/plugins/language-support-cpp-java/plugin.c
+++ b/plugins/language-support-cpp-java/plugin.c
@@ -682,7 +682,7 @@ language_support_get_header_editor_and_mark (CppJavaPlugin* lang_plugin,
 											 gchar* mark,
 											 IAnjutaEditor** header_editor)
 {
-	IAnjutaIterable* mark_position;
+	IAnjutaIterable* mark_position = NULL;
 	GFile *header_file = language_support_get_header_file (editor);
 
 	/* Yes, we have a header */



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