]> git.ipfire.org Git - thirdparty/systemd.git/commit
basic/strv: check printf arguments to strv_extendf() 25470/head
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 21 Nov 2022 19:06:55 +0000 (20:06 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 21 Nov 2022 19:08:50 +0000 (20:08 +0100)
commit400102ec91aa3404848a04f49a43d49e1a181708
tree45ab0dba9f926dbfe21c28f98f6a01dd1484dc19
parent6457ce15be84cf3c304d1ba47b89bacc2f60bf6e
basic/strv: check printf arguments to strv_extendf()

The second argument to _printf_() specifies where the arguments start. We need to
use 0 in two cases: when the args in a va_list and can't be checked, and with journald
logging functions which accept multiple format strings with multiple argument sets,
which the _printf_ checker does not understand. But strv_extendf() can be checked.
src/basic/strv.h