Browse code

Fix test if select result is not empty for select function returning empty string with result=0, res.len=0.

Michal Matyska authored on 12/06/2006 21:14:24
Showing 1 changed files
... ...
@@ -816,7 +816,7 @@ inline static int comp_select(int op, select_t* sel, int rtype, union exp_op* r,
816 816
 	if (ret > 0) return 0;
817 817
 
818 818
 	switch(op) {
819
-	case NO_OP: return 1;
819
+	case NO_OP: return (val.len>0);
820 820
 	case BINOR_OP:
821 821
 	case BINAND_OP:
822 822
 		ERR("Binary operators cannot be used with string selects\n");