Tue, 02 Jun 2015 21:03:58 +0200
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)) {