Files
sthen 13db2b77cd update to patchutils-0.4.3
patch to disable new --in-place option in filterdiff which doesn't work
with our stdout (tries to temporarily swap stdout to another file handle)
2025-08-28 07:17:35 +00:00

14 lines
428 B
Plaintext

Avoid use of unitialized variable. Fixes addhunk2 test with vm.malloc_conf=J.
Index: src/rediff.c
--- src/rediff.c.orig
+++ src/rediff.c
@@ -874,6 +874,7 @@ static int rediff (const char *original, const char *e
newhunk->filepos = pos;
newhunk->line_in_diff = linenum;
newhunk->num_lines = 0;
+ newhunk->discard_offset = 0;
if (!strncmp (line, "--- ", 4)) {
struct file_info *info = xmalloc (sizeof *info);