[anjuta] language-support-python: Remove critical warnings



commit 4cf393e02532d51bbc3c4bb558cd3b6b87c09c78
Author: Sébastien Granjoux <seb sfo free fr>
Date:   Sat Jun 22 19:33:43 2013 +0200

    language-support-python: Remove critical warnings

 plugins/language-support-python/python-assist.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/language-support-python/python-assist.c b/plugins/language-support-python/python-assist.c
index 355577c..d9373df 100644
--- a/plugins/language-support-python/python-assist.c
+++ b/plugins/language-support-python/python-assist.c
@@ -641,9 +641,9 @@ python_assist_populate_completions (IAnjutaLanguageProvider* self,
        DEBUG_PRINT ("Preword: %s", pre_word);
        
        /* Check if completion was in progress */
-       if (assist->priv->completion_cache)
+       if (assist->priv->completion_cache != NULL) 
        {
-               if (pre_word && g_str_has_prefix (pre_word, assist->priv->pre_word))
+               if (pre_word && assist->priv->pre_word && g_str_has_prefix (pre_word, assist->priv->pre_word))
                {
                        DEBUG_PRINT ("Continue autocomplete for %s", pre_word);
                        


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