diff options
| author | Kyle Evans <kevans@FreeBSD.org> | 2019-03-01 01:20:21 +0000 |
|---|---|---|
| committer | Kyle Evans <kevans@FreeBSD.org> | 2019-03-01 01:20:21 +0000 |
| commit | ef30b5a80910bd877f582248004200065eeb3ef5 (patch) | |
| tree | 1b8c26650c4d2ea7dae4fe745ad995b5c8372bfb /usr.bin/patch/pch.c | |
| parent | e3431664dff30f3d9a7f324a2a1b88ca0c0d9886 (diff) | |
Notes
Diffstat (limited to 'usr.bin/patch/pch.c')
| -rw-r--r-- | usr.bin/patch/pch.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/usr.bin/patch/pch.c b/usr.bin/patch/pch.c index 0b583ea7eb317..50e1604b9b92d 100644 --- a/usr.bin/patch/pch.c +++ b/usr.bin/patch/pch.c @@ -179,6 +179,9 @@ there_is_another_patch(void) say("done\n"); return false; } + if (p_filesize == 0) + return false; + nonempty_patchf_seen = true; if (verbose) say("Hmm..."); diff_type = intuit_diff_type(); |
