mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
cov: better handle reallocation of adapt_file
If the option would be given more then once.
This commit is contained in:
parent
ce907bcd26
commit
376e707232
@ -6305,6 +6305,7 @@ int main(int argc, char *argv[])
|
|||||||
case '0':
|
case '0':
|
||||||
break;
|
break;
|
||||||
case 128:
|
case 128:
|
||||||
|
free((void *) adopt_file);
|
||||||
adopt_file = strdup(optarg);
|
adopt_file = strdup(optarg);
|
||||||
break;
|
break;
|
||||||
case 'h':
|
case 'h':
|
||||||
|
Loading…
Reference in New Issue
Block a user