fixed path parser not writing length for a single slash as path

Tue, 02 Jun 2015 21:03:58 +0200

author
Mike Becker <universe@uap-core.de>
date
Tue, 02 Jun 2015 21:03:58 +0200
changeset 129
7532963bd15b
parent 128
649eb328674a
child 130
80d273229f24

fixed path parser not writing length for a single slash as path

libidav/davqlparser.c file | annotate | diff | comparison | revisions
--- a/libidav/davqlparser.c	Tue Jun 02 20:57:23 2015 +0200
+++ b/libidav/davqlparser.c	Tue Jun 02 21:03:58 2015 +0200
@@ -1442,7 +1442,7 @@
         tokens = tokens->next;
     } else if (token_is(tokens, DAVQL_TOKEN_OPERATOR)
             && tokenvalue_is(tokens, "/")) {
-        stmt->path.ptr = token_sstr(tokens).ptr;
+        stmt->path = token_sstr(tokens);
         tokens = tokens->next;
         while (!token_is(tokens, DAVQL_TOKEN_KEYWORD) &&
                 !token_is(tokens, DAVQL_TOKEN_END)) {

mercurial