nspawn: avoid passing NULL to log_syntax() (#41712)

And a couple of other cosmetic tweaks.
This commit is contained in:
Christian Brauner
2026-04-20 08:48:17 +02:00
committed by GitHub
4 changed files with 6 additions and 4 deletions
+2
View File
@@ -64,6 +64,8 @@ size_t strpcpyf_full(char **dest, size_t size, bool *ret_truncated, const char *
i = vsnprintf(*dest, size, src, va);
va_end(va);
assert(i >= 0);
if (i < (int) size) {
*dest += i;
size -= i;