diff options
| author | Pranjal Kole <pranjal.kole7@gmail.com> | 2022-01-29 17:40:26 +0000 |
|---|---|---|
| committer | Pranjal Kole <pranjal.kole7@gmail.com> | 2022-02-05 06:20:41 +0000 |
| commit | 65b5469e86dc57969cac2109ce5bd53a88164b08 (patch) | |
| tree | ac2e91b6a49925ad068e96bd250622ca05b3007e /foot-server@.socket | |
| parent | Merge branch 'improve-shellscript' (diff) | |
config: don't pass null strings to *printf()
musl and glibc's *printf() convert NULL strings to "(null)" [0][1], but
this is undefined behaviour.
context.value has to be set to two backspaces, so that the extra colon
is removed. context.key is set to one backspace, so that the extra dot
is removed. context.section is now set to "main" by default, so it is
never NULL.
[0]: https://git.musl-libc.org/cgit/musl/tree/src/stdio/vfprintf.c#n593
[1]: https://sourceware.org/git/?p=glibc.git;a=blob;f=stdio-common/vfprintf-internal.c;hb=HEAD#l1011
Diffstat (limited to 'foot-server@.socket')
0 files changed, 0 insertions, 0 deletions
