[tracker: 10/13] Removed warning: ordered comparison of pointer with integer zero




commit c7fd0b9cf8650699d78e81be95ce7442f20358c7
Author: nitinosiris <nitinwartkar58 gmail com>
Date:   Thu May 20 17:38:29 2021 +0530

    Removed warning: ordered comparison of pointer with integer zero

 src/libtracker-data/tracker-sparql-parser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libtracker-data/tracker-sparql-parser.c b/src/libtracker-data/tracker-sparql-parser.c
index 93f70876c..d799f6aa8 100644
--- a/src/libtracker-data/tracker-sparql-parser.c
+++ b/src/libtracker-data/tracker-sparql-parser.c
@@ -633,7 +633,7 @@ tracker_grammar_parser_read (TrackerGrammarParser *parser,
 
        tracker_parser_state_skip_whitespace (state, parser);
 
-       return (g_node_first_child ((GNode *) state->node_tree->root) > 0 &&
+       return (g_node_first_child ((GNode *) state->node_tree->root) &&
                parser->query[state->current] == '\0');
 }
 


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