]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: optimize mnt_optstr_apply_flags()
authorKarel Zak <kzak@redhat.com>
Tue, 29 Sep 2020 10:31:06 +0000 (12:31 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 29 Sep 2020 10:31:06 +0000 (12:31 +0200)
commitab35743a0f42e94a58f3365177ca1e2eab38b3e1
tree55e55e56ea95106aa9c487a546276e259f5c9a91
parent4973aed09db05f41995851fd0a703cc071012d16
libmount: optimize mnt_optstr_apply_flags()

We append to the options string in loop there. It seems better to use
ul_buffer for this case to avoid duplicate strlen() and reallocs.

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/optstr.c