]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
prepstdreply: fix useless assignation
authorBaptiste Daroussin <bapt@FreeBSD.org>
Tue, 20 Jun 2023 07:48:39 +0000 (09:48 +0200)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Tue, 20 Jun 2023 07:48:39 +0000 (09:48 +0200)
src/prepstdreply.c

index a8c8bff5c6cc73af5d549a3b6d117bf7aa91e09b..04fc131eef13d194d72099105fb9218e777d04b7 100644 (file)
@@ -460,7 +460,6 @@ text *open_text(int listfd, const char *purpose, const char *action,
                filename[filenamelen-len-1] = '\0';
                if ((txt = open_text_file(listfd, filename)) != NULL) break;
                filename[filenamelen-len-1] = '-';
-               filenamelen -= len + 1;
                if ((txt = open_text_file(listfd, compat)) != NULL) {
                        free(filename);
                        filename = xstrdup(compat);