]> andersk Git - moira.git/commitdiff
reset ingres_errno before each operation
authormar <mar>
Fri, 1 Jun 1990 18:46:36 +0000 (18:46 +0000)
committermar <mar>
Fri, 1 Jun 1990 18:46:36 +0000 (18:46 +0000)
server/mr_scall.c

index a42f6df5c24d45897a287aaa783c71c257ca7c90..a3671b9770090aa8d88cddacdd9f2f268c3318bf 100644 (file)
@@ -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;
This page took 0.079585 seconds and 5 git commands to generate.