From 4ce8321c959682cfafd2200fce4bc99fa2949a58 Mon Sep 17 00:00:00 2001 From: mar Date: Fri, 1 Jun 1990 18:46:36 +0000 Subject: [PATCH] reset ingres_errno before each operation --- server/mr_scall.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/mr_scall.c b/server/mr_scall.c index a42f6df5..a3671b97 100644 --- a/server/mr_scall.c +++ b/server/mr_scall.c @@ -95,6 +95,7 @@ do_call(cl) client *cl; { int pn; + extern int ingres_errno; cl->reply.mr_argc = 0; cl->reply.mr_status = 0; cl->reply.mr_version_no = cl->args->mr_version_no; @@ -118,6 +119,9 @@ do_call(cl) return; } + /* make sure this gets cleared before every operation */ + ingres_errno = 0; + switch(pn) { case MR_NOOP: cl->reply.mr_status = 0; -- 2.45.2