From 773ed9d5af946dd8c770f72a7e7582ba49e9b264 Mon Sep 17 00:00:00 2001 From: alexpeshkoff Date: Mon, 24 Mar 2008 14:40:12 +0000 Subject: [PATCH] Fixed AV --- src/gpre/sql.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gpre/sql.cpp b/src/gpre/sql.cpp index edb28540f5..bb9385e0d9 100644 --- a/src/gpre/sql.cpp +++ b/src/gpre/sql.cpp @@ -5009,7 +5009,8 @@ static void into( gpre_req* request, GPRE_NOD field_list, GPRE_NOD var_list) || ((*fld_ptr)->nod_type == nod_array)) { field_ref = (REF) (*fld_ptr)->nod_arg[0]; - slice_req = (gpre_req*) (*fld_ptr)->nod_arg[2]; + if ((*fld_ptr)->nod_count > 2) + slice_req = (gpre_req*) (*fld_ptr)->nod_arg[2]; } REF reference = NULL;