This fixes a regression introduced in commit 612f4e7: [settings] Avoid returning uninitialised data on error in fetch_xxx_setting() in which the memset() was moved from fetch_string_setting() to fetch_setting(), in order that it would be useful for non-string setting types. However, this neglects to take into account the fact that fetch_string_setting() shrinks its buffer by one byte (to allow for the NUL) before calling fetch_setting(). Restore the memset() in fetch_string_setting(), so that the terminating NUL is guaranteed to actually be a NUL.tags/v0.9.6
|
|
||
384 |
|
384 |
|
385 |
|
385 |
|
386 |
|
386 |
|
|
387 |
|
|
387 |
|
388 |
|
388 |
|
389 |
|
389 |
|
390 |
|