]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
prepstdreply: Fix corruption prefix pointer
authorBaptiste Daroussin <bapt@FreeBSD.org>
Wed, 8 Mar 2023 09:39:03 +0000 (10:39 +0100)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Wed, 8 Mar 2023 09:39:03 +0000 (10:39 +0100)
src/prepstdreply.c

index c96825e95e0613238678adea0a7ace2543d263c9..a8c8bff5c6cc73af5d549a3b6d117bf7aa91e09b 100644 (file)
@@ -602,6 +602,7 @@ static void begin_new_source_file(text *txt, char **line_p, char **pos_p,
        src->transparent = transparent;
        src->limit = -1;
        txt->src = src;
+       tmp = NULL;
        if (getline(&tmp, &tmpcap, fp) <= 0) {
                close_source(txt);
                **pos_p = '\0';