From: Olivier Matz Date: Fri, 4 Aug 2017 12:25:15 +0000 (+0200) Subject: revert str parse len 1 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c49beb1e5cee2b36c916c64c571967d8ef19c58a;p=protos%2Flibecoli.git revert str parse len 1 --- diff --git a/lib/ecoli_node_str.c b/lib/ecoli_node_str.c index 85a4046..a388841 100644 --- a/lib/ecoli_node_str.c +++ b/lib/ecoli_node_str.c @@ -55,7 +55,7 @@ ec_node_str_parse(const struct ec_node *gen_node, (void)state; - if (ec_strvec_len(strvec) != 1) + if (ec_strvec_len(strvec) == 0) return EC_PARSED_NOMATCH; str = ec_strvec_val(strvec, 0);