summaryrefslogtreecommitdiffstats
path: root/usr.bin/patch
diff options
context:
space:
mode:
authorajacoutot <ajacoutot@openbsd.org>2012-04-11 08:07:13 +0000
committerajacoutot <ajacoutot@openbsd.org>2012-04-11 08:07:13 +0000
commit64fb091a3fe8b13751b56ca86ccfb0e7f67cda26 (patch)
tree596866713267945a10b8370f1e5b5207f4a09767 /usr.bin/patch
parentTurn automatic-rename off properly if turned off by renaming a (diff)
downloadwireguard-openbsd-64fb091a3fe8b13751b56ca86ccfb0e7f67cda26.tar.xz
wireguard-openbsd-64fb091a3fe8b13751b56ca86ccfb0e7f67cda26.zip
Silence gcc warnings.
ok deraadt@
Diffstat (limited to 'usr.bin/patch')
-rw-r--r--usr.bin/patch/pch.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/patch/pch.c b/usr.bin/patch/pch.c
index a689e2e71a2..16576f9f92a 100644
--- a/usr.bin/patch/pch.c
+++ b/usr.bin/patch/pch.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pch.c,v 1.38 2009/10/27 23:59:41 deraadt Exp $ */
+/* $OpenBSD: pch.c,v 1.39 2012/04/11 08:07:13 ajacoutot Exp $ */
/*
* patch - a program to apply diffs to original files
@@ -504,10 +504,12 @@ another_hunk(void)
line_beginning = ftell(pfp);
repl_beginning = 0;
fillcnt = 0;
+ fillsrc = 0;
ptrn_spaces_eaten = false;
repl_could_be_missing = true;
repl_missing = false;
repl_backtrack_position = 0;
+ repl_patch_line = 0;
ptrn_copiable = 0;
ret = pgets(buf, sizeof buf, pfp);