The branch, master has been updated
       via  a75801320d07df99018b6fda016b6aca6fc0ca51 (commit)
       via  241a746f3219d90ec2fd081fe9e81a681d9e6cbd (commit)
      from  47fbf87185ff60c201bffa432092035cafcc220f (commit)

- Log -----------------------------------------------------------------
commit a75801320d07df99018b6fda016b6aca6fc0ca51
Merge: 47fbf87 241a746
Author: Thomas Adam <tho...@xteddy.org>
Commit: Thomas Adam <tho...@xteddy.org>

    Merge branch 'obsd-master'
    
    Sync from OpenBSD.

 cmd-set-environment.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)



commit 241a746f3219d90ec2fd081fe9e81a681d9e6cbd
Author: okan <okan>
Commit: okan <okan>

    fix an off-by-one
    
    ok nicm@
---
 cmd-set-environment.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cmd-set-environment.c b/cmd-set-environment.c
index 67f28af..9cebc95 100644
--- a/cmd-set-environment.c
+++ b/cmd-set-environment.c
@@ -57,7 +57,7 @@ cmd_set_environment_exec(struct cmd *self, struct cmd_ctx 
*ctx)
                return (CMD_RETURN_ERROR);
        }
 
-       if (args->argc < 1)
+       if (args->argc < 2)
                value = NULL;
        else
                value = args->argv[1];


-----------------------------------------------------------------------

Summary of changes:
 cmd-set-environment.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
Portable version of tmux, running on operating systems other than OpenBSD.  For 
that, see the "tmux-openbsd" repository.

------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
tmux-cvs mailing list
tmux-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-cvs

Reply via email to