summaryrefslogtreecommitdiff
path: root/src/modules/sparkler/bsp.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-01-12 14:36:09 -0800
committerVito Caputo <vcaputo@pengaru.com>2023-01-12 14:36:09 -0800
commit8cc43dafc8f0d4ca04aa162573a44016f45ea364 (patch)
tree060b49468c211f1a8cdc8b02347ea7882d1e26a4 /src/modules/sparkler/bsp.c
parent7aeaad3e34413e7bdf78696484fa6c502c5e0617 (diff)
modules/compose: fix segfault introduced by 83e41d
It was assumed (n_modules - n_overlayable) would give the number of non-overlayable modules appropriate as base layers. But with the skipping of hermetic and experimental modules the base_idx could be out of reach leaving layers NULL after the loop, which will segfault later when strlen() assumes it's non-NULL. This commit does the simple thing and also counts the unusable modules to subtract from those eligible for base layers along with n_overlayable.
Diffstat (limited to 'src/modules/sparkler/bsp.c')
0 files changed, 0 insertions, 0 deletions
© All Rights Reserved