diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2023-09-20 15:27:23 +0200 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2023-09-20 16:07:24 +0200 |
| commit | 448d690a354c3ea481aba6254a285937d843cf81 (patch) | |
| tree | c3c0397bba55d7629b9a0311708096791aecc4ef /lib/printf | |
| parent | 592011b25160ed6bc476e6855784ed2a7c8f3bc6 (diff) | |
lib: random make-coverity-happy nits
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/printf')
| -rw-r--r-- | lib/printf/printfcommon.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/printf/printfcommon.h b/lib/printf/printfcommon.h index b3a7ca0c13..f777be8805 100644 --- a/lib/printf/printfcommon.h +++ b/lib/printf/printfcommon.h @@ -68,7 +68,7 @@ io_print(struct io_state *iop, const CHAR * __restrict ptr, size_t len) { size_t copylen = len; - if (!iop->cb) + if (!iop->cb || !len) return 0; if (iop->avail < copylen) copylen = iop->avail; |
