dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit c0556ef45cc1320afa584e6827826b3dfbbdccdd
parent 7adbe7091682135b319f4b46a0f2b793901c0513
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Thu, 16 Oct 2014 23:15:13 +0200

Change stupid array initialization

Diffstat:
dvtm.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dvtm.c b/dvtm.c @@ -1196,8 +1196,8 @@ handle_cmdfifo(void) { if (*s && (cmd = get_cmd_by_name(s)) != NULL) { bool quote = false; int argc = 0; - /* XXX: initializer assumes MAX_ARGS == 2 use a initialization loop? */ - const char *args[MAX_ARGS] = { NULL, NULL, NULL}, *arg; + const char *args[MAX_ARGS], *arg; + memset(args, 0, sizeof(args)); /* if arguments were specified in config.h ignore the one given via * the named pipe and thus skip everything until we find a new line */