From: František Dvořák Date: Fri, 13 Jul 2012 14:58:43 +0000 (+0000) Subject: Fix LESS condition parsing in query utility (it could fix SB #42670). X-Git-Tag: glite-jobid-api-c_R_2_1_2_3~8 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=0a638d38cb9e5cbe896d08cca614d517e612b216;p=jra1mw.git Fix LESS condition parsing in query utility (it could fix SB #42670). --- diff --git a/org.glite.lb.client/examples/query_ext.c b/org.glite.lb.client/examples/query_ext.c index 643c0d9..8f8d4c9 100644 --- a/org.glite.lb.client/examples/query_ext.c +++ b/org.glite.lb.client/examples/query_ext.c @@ -368,9 +368,10 @@ static char *get_op(char *src, edg_wll_QueryOp *op) else if ( src[i] == '>' ) *op = EDG_WLL_QUERY_OP_GREATER; else if ( src[i] == '<' ) { - if ( (src[i+1] != '\0') && (src[++i] == '>') ) + if ( (src[i+1] != '\0') && (src[i] == '>') ) { *op = EDG_WLL_QUERY_OP_UNEQUAL; - else + i++; + } else *op = EDG_WLL_QUERY_OP_LESS; } else return NULL;