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:
parent
6afaaca2e5
commit
e8e5e6ee3c
@ -964,7 +964,7 @@ static int _stats_parse_string_data(char *string_data, char **program_id,
|
|||||||
if (strstr(p, DMS_GROUP_TAG)) {
|
if (strstr(p, DMS_GROUP_TAG)) {
|
||||||
*aux_data = p;
|
*aux_data = p;
|
||||||
/* Skip over the group tag */
|
/* Skip over the group tag */
|
||||||
next_gap = strchr(p, DMS_AUX_SEP_CHAR);
|
if ((next_gap = strchr(p, DMS_AUX_SEP_CHAR)))
|
||||||
next_gap = strchr(next_gap, ' ');
|
next_gap = strchr(next_gap, ' ');
|
||||||
if (next_gap) {
|
if (next_gap) {
|
||||||
*(next_gap++) = '\0';
|
*(next_gap++) = '\0';
|
||||||
|
Loading…
Reference in New Issue
Block a user