logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git
commit: 5e7c586b21816f9b353c747e84cc97ba093cb080
parent 314cf1e13a7d9df2bbd7a4ca857244d6a97dd17d
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 27 Sep 2024 16:32:23 +0200

lib/offline_realpath: remove unused variable & label

Diffstat:

Mlib/offline_realpath.c3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/offline_realpath.c b/lib/offline_realpath.c @@ -35,7 +35,7 @@ offline_realpath(const char *restrict filename, char *restrict resolved) { char stack[PATH_MAX + 1]; char output[PATH_MAX]; - size_t p, q, l, l0, cnt = 0, nup = 0; + size_t p, q, l, l0, nup = 0; int check_dir = 0; if(!filename) @@ -58,7 +58,6 @@ offline_realpath(const char *restrict filename, char *restrict resolved) * remaining path components and consumes any slashes that follow. * If not a link, it's moved to output; if a link, contents are * pushed to the stack. */ -restart: for(;; p += slash_len(stack + p)) { /* If stack starts with /, the whole component is / or //