]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: avoid calling memset() unnecessarily
authorKarel Zak <kzak@redhat.com>
Thu, 24 Apr 2025 16:32:35 +0000 (18:32 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 25 Apr 2025 08:43:13 +0000 (10:43 +0200)
commit15f72204593e529bff11115e4703c48c4b2c3ea3
treefd6285b643a732b8d62c8ef067b4ffef05d27590
parentd828cc20fbbc8daec3e046a6ce2f877fae3d31d9
libmount: avoid calling memset() unnecessarily

This is primarily to satisfy static analyzers, as memset() is defined
as a non-null function (although it does nothing when bufsiz=0).

Signed-off-by: Karel Zak <kzak@redhat.com>
(cherry picked from commit 9e96e6ed9cce4cbaf3b9ca6e61d0b0ee070685e9)
libmount/src/fs_statmount.c