summaryrefslogtreecommitdiff
path: root/mesonbuild/backend/xcodebackend.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2024-04-18 14:20:07 -0700
committerDylan Baker <dylan@pnwbakers.com>2024-04-24 20:40:34 -0700
commitcf0fecfcef77235257546a43811559aa08b6c5de (patch)
treebfd6af76793cb5e5bf9ce0f0075303ebcd778251 /mesonbuild/backend/xcodebackend.py
parentfb5a0b4b61651e8ec5adb656a2957a792ae5d2d7 (diff)
downloadmeson-cf0fecfcef77235257546a43811559aa08b6c5de.tar.gz
backend/ninja: Fix bug in NinjaRule.length_estimate
The code would create a dictionary that was of type `str : list[str] | str | None`. Then would later try to call `len(' '.join(dict[key]))`. This would result in two different bugs: 1. If the value is `None` it would except, since None isn't iterable and cannot be converted to a string 2. If the value was a string, then it would double the length of the actual string and return that, by adding a space between each character
Diffstat (limited to 'mesonbuild/backend/xcodebackend.py')
0 files changed, 0 insertions, 0 deletions