1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

cov: check next_get token exists

This commit is contained in:
Zdenek Kabelac 2023-10-14 16:54:54 +02:00
parent 6afaaca2e5
commit e8e5e6ee3c

View File

@ -964,8 +964,8 @@ static int _stats_parse_string_data(char *string_data, char **program_id,
if (strstr(p, DMS_GROUP_TAG)) {
*aux_data = p;
/* Skip over the group tag */
next_gap = strchr(p, DMS_AUX_SEP_CHAR);
next_gap = strchr(next_gap, ' ');
if ((next_gap = strchr(p, DMS_AUX_SEP_CHAR)))
next_gap = strchr(next_gap, ' ');
if (next_gap) {
*(next_gap++) = '\0';
*stats_args = next_gap++;