[tracker/wip/carlosg/issue-84: 1/2] libtracker-data: Fix infinite recursion on positive doubles



commit c29c4fd4074b7c82bf24749487af3f1fb87a6451
Author: Carlos Garnacho <carlosg gnome org>
Date:   Wed Mar 27 16:04:35 2019 +0100

    libtracker-data: Fix infinite recursion on positive doubles
    
    A c&p typo made the DOUBLE_POSITIVE terminal defined upon itself, it
    should be defined on top of DOUBLE.

 src/libtracker-data/tracker-sparql-grammar.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libtracker-data/tracker-sparql-grammar.h b/src/libtracker-data/tracker-sparql-grammar.h
index 0a01c9066..d7c578b64 100644
--- a/src/libtracker-data/tracker-sparql-grammar.h
+++ b/src/libtracker-data/tracker-sparql-grammar.h
@@ -1958,7 +1958,7 @@ terminal_DOUBLE_POSITIVE (const gchar  *str,
                          const gchar **str_out)
 {
        ACCEPT_CHAR ((ch == '+'));
-       return terminal_DOUBLE_POSITIVE (str, end, str_out);
+       return terminal_DOUBLE (str, end, str_out);
 }
 
 /* INTEGER_NEGATIVE ::= '-' INTEGER


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