aboutsummaryrefslogtreecommitdiff
path: root/apply.c
diff options
context:
space:
mode:
Diffstat (limited to 'apply.c')
-rw-r--r--apply.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apply.c b/apply.c
index e02e760be..ec63a0c1e 100644
--- a/apply.c
+++ b/apply.c
@@ -1186,6 +1186,9 @@ static void write_out_one_result(struct patch *patch)
static void write_out_results(struct patch *list)
{
+ if (!list)
+ die("No changes");
+
while (list) {
write_out_one_result(list);
list = list->next;