diff options
Diffstat (limited to 'src/XpathParser.c')
-rw-r--r-- | src/XpathParser.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/XpathParser.c b/src/XpathParser.c index 24e1d6e..4326e85 100644 --- a/src/XpathParser.c +++ b/src/XpathParser.c @@ -35,6 +35,7 @@ static int xpath_parse_param(QuickMediaXpathParser *self, QuickMediaNodeSearchPa if(token != QUICKMEDIA_XPATH_TOKEN_CLOSING_BRACKET) return -4; + result->defined = 1; return 0; } @@ -55,8 +56,6 @@ static int xpath_parse_node(QuickMediaXpathParser *self, QuickMediaNodeSearch *r if(param_result < 0) { quickmedia_node_search_deinit(result); return param_result; - } else if(param_result == 0) { - result->param_defined = 1; } result->child = malloc(sizeof(QuickMediaNodeSearch)); |