[tracker-miners/wip/carlosg/coverity-fixes: 1/28] libtracker-miners-common: Drop check for variable being NULL




commit 0c5900dacc8e1551d26d0d4bee28e2a7ca1c269f
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sat Oct 23 22:47:59 2021 +0200

    libtracker-miners-common: Drop check for variable being NULL
    
    If we reached that point it certainly shouldn't.
    
    CID: #365666

 src/libtracker-miners-common/tracker-language.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libtracker-miners-common/tracker-language.c b/src/libtracker-miners-common/tracker-language.c
index 80947d19c..89c158b7c 100644
--- a/src/libtracker-miners-common/tracker-language.c
+++ b/src/libtracker-miners-common/tracker-language.c
@@ -298,7 +298,7 @@ language_set_stopword_list (TrackerLanguage *language,
        language_add_stopwords (language, stopword_filename);
        g_free (stopword_filename);
 
-       if (!language_code || strcmp (language_code, "en") != 0) {
+       if (strcmp (language_code, "en") != 0) {
                stopword_filename = language_get_stopword_filename ("en");
                language_add_stopwords (language, stopword_filename);
                g_free (stopword_filename);


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