Commit c4556f0
committed
fix dangling string in dmx_input createConfig()
problem: DmxVersionString was destroyed when createConfig() returns, so software_version_label became dangling already before dmx_driver_install(inputPortNum, &config, ...) consumes the configuration on Line 151
workaround: give the string static lifetime, so it stays valid after the function returns (MT-safe because the version does not change while WLED runs)1 parent 347f533 commit c4556f0
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
88 | | - | |
| 87 | + | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
0 commit comments