vis

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

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

commit 9bdf9a4707e413c6fd68e9997269f1b4f75a7a27
parent c0a426e8941e4804e5c115eb6fd801cdc8840b92
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Tue, 12 Jan 2016 22:37:58 +0100

map: fix return value of map_delete

Diffstat:
Mmap.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/map.c b/map.c @@ -194,7 +194,7 @@ void *map_delete(Map *map, const char *key) /* Did we find it? */ if (strcmp(key, n->u.s)) { errno = ENOENT; - return false; + return NULL; } free((char*)n->u.s);