diff --git a/src/libfetchers/patching-input-accessor.cc b/src/libfetchers/patching-input-accessor.cc index 07aa8316c..78a0f4372 100644 --- a/src/libfetchers/patching-input-accessor.cc +++ b/src/libfetchers/patching-input-accessor.cc @@ -47,7 +47,8 @@ struct PatchingInputAccessor : InputAccessor || hasPrefix(line, "@@") || hasPrefix(line, "+") || hasPrefix(line, "-") - || hasPrefix(line, " "))) + || hasPrefix(line, " ") + || line.empty())) { flush(); }