summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@kernel.org>2022-04-14 14:25:00 +0200
committerPetri Latvala <petri.latvala@intel.com>2022-04-14 18:19:39 +0300
commit697241a99a30774e3a43676f641f4cb601ecda18 (patch)
tree172076cfe92e649529f0b15972c5f541b37818d3 /README.md
parente96b67a069da8ab2a2b884a0ca0446d6cf4fe945 (diff)
code_cov_parse_info: fix --show-lines logic
print_code_coverage function needs to first read the number of lines and then simplify the $file by removing its prefix. Without that, it ends trying to access an uninitiated value, leading to warnings and not doing what's expected. While here, also check if the ln data is valid, just in case the .info file might have some FN field(s) missing. Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions