mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
tests: len always initialized
This commit is contained in:
parent
133686ebc7
commit
b1f33a4000
@ -125,8 +125,7 @@ static void _print_path_delta(FILE *stream,
|
||||
fprintf(stream, "\n");
|
||||
}
|
||||
|
||||
if (new_len > 0)
|
||||
len = common_prefix * 2 + (new[new_len - 1].e - new[new_len - 1].b);
|
||||
len = (new_len > 0) ? common_prefix * 2 + (new[new_len - 1].e - new[new_len - 1].b) : 0;
|
||||
|
||||
fprintf(stream, " ");
|
||||
for (d = len; d < 60; d++)
|
||||
|
Loading…
Reference in New Issue
Block a user