Commit f1584fd8 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Partial revert of "Appropriate VSL group checking"

This would trigger the tautological-compare warning on a recent-enough
Clang, and SunCC appears to complain as well.

Reported by @daghf.
parent 316dfbc8
......@@ -1088,7 +1088,7 @@ VSLQ_New(struct VSL_data *vsl, struct VSL_cursor **cp,
struct VSLQ *vslq;
CHECK_OBJ_NOTNULL(vsl, VSL_MAGIC);
if (grouping < 0 || grouping >= VSL_g__MAX) {
if (grouping >= VSL_g__MAX) {
(void)vsl_diag(vsl, "Illegal query grouping");
return (NULL);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment