diff --git a/builtin-apply.c b/builtin-apply.c
index 70c9f93554c9bc97e5adbd924fd197973bb7d30d..2c87cf57fde83117193fad196c7f1023dcea7525 100644 (file)
--- a/builtin-apply.c
+++ b/builtin-apply.c
sha1_ptr = sha1;
ce = make_cache_entry(patch->old_mode, sha1_ptr, name, 0, 0);
+ if (!ce)
+ die("make_cache_entry failed for path '%s'", name);
if (add_index_entry(&result, ce, ADD_CACHE_OK_TO_ADD))
die ("Could not add %s to temporary index", name);
}