Skip to content

Commit 82e68b4

Browse files
committed
SQUASH??? error: decl-after-stmt
1 parent 4388576 commit 82e68b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

blame.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -925,9 +925,6 @@ static int *fuzzy_find_matching_lines(struct blame_origin *parent,
925925
struct fingerprint *fingerprints_a = parent->fingerprints;
926926
struct fingerprint *fingerprints_b = target->fingerprints;
927927

928-
if (length_a <= 0)
929-
return NULL;
930-
931928
int i, *result, *second_best_result,
932929
*certainties, *similarities, similarity_count;
933930

@@ -943,6 +940,9 @@ static int *fuzzy_find_matching_lines(struct blame_origin *parent,
943940
*/
944941
int max_search_distance_a = 10, max_search_distance_b;
945942

943+
if (length_a <= 0)
944+
return NULL;
945+
946946
if (max_search_distance_a >= length_a)
947947
max_search_distance_a = length_a ? length_a - 1 : 0;
948948

0 commit comments

Comments
 (0)