From 5468d4012f55f7332c7c7df6dabb4fa1e157a3b5 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Thu, 3 Jun 2021 18:20:16 +0300 Subject: Fix reloading of the configuration files. * lib/envop.c (environ_free): Free the env block itself. (envop_cmp): New function. * lib/envop.h (envop_cmp): New proto. * src/comp.c (argvcmp): Fix segmentation fault that occurred when both a and b were NULL. (component_match): Compare command, envop, and umask. --- lib/envop.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/envop.h') diff --git a/lib/envop.h b/lib/envop.h index 6587b1a..2b4aad6 100644 --- a/lib/envop.h +++ b/lib/envop.h @@ -63,6 +63,7 @@ int envop_entry_add (envop_t **head, int envop_exec (envop_t *op, environ_t *env); void envop_free (envop_t *op); +int envop_cmp (struct envop_entry *a, struct envop_entry *b); -- cgit v1.2.1