From maechler at stat.math.ethz.ch  Fri Jul 21 10:23:43 2017
From: maechler at stat.math.ethz.ch (Martin Maechler)
Date: Fri, 21 Jul 2017 10:23:43 +0200
Subject: [Rd] [PATCH] Fix status in main
In-Reply-To: <1528218.0Ib1CH6ICv@x2>
References: <1528218.0Ib1CH6ICv@x2>
Message-ID: <22897.47631.684547.97268@stat.math.ethz.ch>


> Hello,
> This is a patch to fix what appears to be a simple typo. The warning says
> "invalid status assuming 0", but then instead sets runLast to 0.

> Signed-of-by: Steve Grubb <sgrubb at redhat.com>

> Index: src/main/main.c
> ===================================================================
> --- src/main/main.c	(revision 72935)
> +++ src/main/main.c	(working copy)
> @@ -1341,7 +1341,7 @@
>      status = asInteger(CADR(args));
>      if (status == NA_INTEGER) {
>  	warning(_("invalid 'status', 0 assumed"));
> -	runLast = 0;
> +	status = 0;
>      }
>      runLast = asLogical(CADDR(args));
>      if (runLast == NA_LOGICAL) {

Yes, thank you!

Martin



[Rd] [PATCH] Fix status in main
Martin Maechler