libpmc: jevents: handle empty descriptoin
PR: 241258 Reported by: sigsys @ gmail.com Obtained from: github.com/andikleen/pmu-tools commit bb3c77ed61 MFC after: 3 days
This commit is contained in:
parent
d4f55cc861
commit
6a2a926d5f
@ -122,7 +122,7 @@ static void fixdesc(char *s)
|
||||
--e;
|
||||
while (e >= s && isspace(*e))
|
||||
--e;
|
||||
if (*e == '.')
|
||||
if (e >= s && *e == '.')
|
||||
*e = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user