[anjuta] code-analyzer: Fixed bgo#667903 - Code Analyzer Crashes



commit 0b57d63f8c3aa73c655e014b52a6aa7c9ae1c7fa
Author: Johannes Schmid <jhs gnome org>
Date:   Sat Jan 14 15:03:51 2012 +0100

    code-analyzer: Fixed bgo#667903 - Code Analyzer Crashes

 plugins/code-analyzer/plugin.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/code-analyzer/plugin.c b/plugins/code-analyzer/plugin.c
index 979ed61..94f1a47 100644
--- a/plugins/code-analyzer/plugin.c
+++ b/plugins/code-analyzer/plugin.c
@@ -162,7 +162,7 @@ ienvironment_override (IAnjutaEnvironment* env_iface,
 			return FALSE;
 		}
 
-		for (env = new_env; *env != NULL; env++)
+		for (env = new_env; env && *env != NULL; env++)
 		{
 			if (g_str_has_prefix (*env, "CC="))
 			{



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