dvtm

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

commit f46fb6bf8bd05883b812cdec510f0606e3f79a62
parent e2074b724c6c96f0ca760fa4db17a44ad2076f71
Author: Marc Andre Tanner <mat@brain-dump.org>
Date:   Mon, 16 Jun 2008 17:53:24 +0200

Better error handling in case of calloc failure

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

diff --git a/dvtm.c b/dvtm.c @@ -587,6 +587,8 @@ title_escape_seq_handler(madtty_t *term, char *es) { void create(const char *args[]) { Client *c = calloc(sizeof(Client), 1); + if (!c) + return; const char *cmd = (args && args[0]) ? args[0] : shell; const char *pargs[] = { "/bin/sh", "-c", cmd, NULL }; #ifdef CONFIG_CMDFIFO