summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/execline/runblock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/execline/runblock.c b/src/execline/runblock.c
index a654023..4e3808d 100644
--- a/src/execline/runblock.c
+++ b/src/execline/runblock.c
@@ -77,7 +77,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
if (flagr) /* put remainder envvars into v */
{
- if (++m == sharp) return 0 ;
+ if (++m > sharp) return 0 ;
if (!genalloc_ready(char const *, &v, sharp - m + 2))
strerr_diefu1sys(111, "genalloc_ready") ;
for (; m <= sharp ; m++)