X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;ds=sidebyside;f=matcher.c;h=a76fc13b0ef410e3b9bf84d09cfc237687cc48dc;hb=325454c60f282994cf79c69d49edbcea53f2e924;hp=9d2aa89e878ea715732a66e3f7a94c3b375c60ff;hpb=560afcf584db83ce828b2c44a78b9f20a6fc96dc;p=project%2Fjsonpath.git diff --git a/matcher.c b/matcher.c index 9d2aa89..a76fc13 100644 --- a/matcher.c +++ b/matcher.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2013 Jo-Philipp Wich + * Copyright (C) 2013-2014 Jo-Philipp Wich * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -164,6 +164,7 @@ jp_expr(struct jp_opcode *op, struct json_object *root, struct json_object *cur, return true; case T_OR: + case T_UNION: for (sop = op->down; sop; sop = sop->sibling) if (jp_expr(sop, root, cur, idx, key, cb, priv)) return true;