mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-30 17:18:21 +03:00
libdm: check for empty aux_data in _parse_aux_data_group()
If after extracting stats arguments and group tags nothing remains of aux_data but '-' set the region->aux_data field to the empty string to match behaviour for non-grouped regions.
This commit is contained in:
parent
c1a66d4fc6
commit
bf1dfea393
@ -692,7 +692,7 @@ static int _parse_aux_data_group(struct dm_stats *dms,
|
||||
}
|
||||
|
||||
/* separate group tag from user aux_data */
|
||||
if (strlen(end))
|
||||
if ((strlen(end) > 1) || strncmp(end, "-", 1))
|
||||
c = dm_strdup(end);
|
||||
else
|
||||
c = dm_strdup("");
|
||||
|
Loading…
Reference in New Issue
Block a user