1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-04 09:18:36 +03:00

tests: len always initialized

This commit is contained in:
Zdenek Kabelac 2021-09-20 16:24:08 +02:00
parent 133686ebc7
commit b1f33a4000

View File

@ -125,8 +125,7 @@ static void _print_path_delta(FILE *stream,
fprintf(stream, "\n"); fprintf(stream, "\n");
} }
if (new_len > 0) len = (new_len > 0) ? common_prefix * 2 + (new[new_len - 1].e - new[new_len - 1].b) : 0;
len = common_prefix * 2 + (new[new_len - 1].e - new[new_len - 1].b);
fprintf(stream, " "); fprintf(stream, " ");
for (d = len; d < 60; d++) for (d = len; d < 60; d++)