[anjuta] language-support-cpp-java: Update to make it works with Scintilla



commit fa20cc5fcfca74a8a9bef64a9d9626a3402de94d
Author: Sébastien Granjoux <seb sfo free fr>
Date:   Sat Mar 6 17:44:10 2010 +0100

    language-support-cpp-java: Update to make it works with Scintilla

 .../language-support-cpp-java/cpp-java-assist.c    |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/plugins/language-support-cpp-java/cpp-java-assist.c b/plugins/language-support-cpp-java/cpp-java-assist.c
index a22b88b..c8b826e 100644
--- a/plugins/language-support-cpp-java/cpp-java-assist.c
+++ b/plugins/language-support-cpp-java/cpp-java-assist.c
@@ -278,10 +278,8 @@ static void
 cpp_java_assist_update_pre_word (CppJavaAssist* assist, const gchar* pre_word)
 {
 	g_free (assist->priv->pre_word);
-	if (pre_word)
-	{
-		assist->priv->pre_word = g_strdup (pre_word);
-	}
+	if (pre_word == NULL) pre_word = "";
+	assist->priv->pre_word = g_strdup (pre_word);
 }
 
 /**



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