git-whatchanged: Add usage string
[gitweb.git] / diffcore-rename.c
index 6a9d95d0593f26c5e698c5e593a9efc287c8e399..dba965c0b4006251b1da04465d319c5fe9997ea4 100644 (file)
@@ -307,6 +307,9 @@ void diffcore_rename(struct diff_options *options)
        if (rename_count == rename_dst_nr)
                goto cleanup;
 
+       if (minimum_score == MAX_SCORE)
+               goto cleanup;
+
        num_create = (rename_dst_nr - rename_count);
        num_src = rename_src_nr;
        mx = xmalloc(sizeof(*mx) * num_create * num_src);