mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-25 06:46:36 -04:00
config: value_to_*(): don't overwrite result variable on error
Some of the value_to_*() functions wrote directly to the output variable, even when the value was invalid. This often resulted in the an actual configuration option (i.e. a member in the config struct) to be overwritten by an invalid value. For example, -o initial-color-theme=0 would set conf->initial_color_theme to -1, resulting in a crash later, when initializing a terminal instance.
This commit is contained in:
parent
72d9a13c0c
commit
ed7652db50
2 changed files with 20 additions and 7 deletions
|
|
@ -70,7 +70,7 @@
|
|||
### Changed
|
||||
|
||||
* The label letters are no longer sorted before being assigned to URLs
|
||||
([#2140]2140[]).
|
||||
([#2140][2140]).
|
||||
* Sending SIGUSR1/SIGUSR2 to a `foot --server` process now causes
|
||||
newly spawned client instances to use the selected theme, instead of
|
||||
the original one.
|
||||
|
|
@ -83,6 +83,11 @@
|
|||
### Deprecated
|
||||
### Removed
|
||||
### Fixed
|
||||
|
||||
* Invalid configuration values overriding valid ones in surprising
|
||||
ways.
|
||||
|
||||
|
||||
### Security
|
||||
### Contributors
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue