vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 99d8f054f88648af07cfd47569908c47d78a77b7
parent 7773d1db871aadd0c949426a926bbf3e4b9549a5
Author: Tom Schwindl <schwindl@posteo.de>
Date:   Fri, 22 Sep 2023 23:46:22 +0200

vis-subprocess.c: remove unnecessary NULL check

Diffstat:
Mvis-subprocess.c | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/vis-subprocess.c b/vis-subprocess.c @@ -47,10 +47,8 @@ static void destroy_process(Process **pointer) { if (target->invalidator) { *(target->invalidator) = NULL; } - if (target->name) { - free(target->name); - } *pointer = target->next; + free(target->name); free(target); }