]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: make mnt_get_filesystems() more robust [clang analyze]
authorKarel Zak <kzak@redhat.com>
Thu, 30 Jul 2015 07:28:19 +0000 (09:28 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 30 Jul 2015 07:28:19 +0000 (09:28 +0200)
commit6b9784b442aea0b1c454d80bfabb17d0d5eee111
treeefb4602fff70ddbada78668b24b870a3446ba343
parentd8461c4e4d8046fb8bd1da8c57383854159d48d1
libmount: make mnt_get_filesystems() more robust [clang analyze]

The mnt_free_filesystems() relies on NULL as the last item in the
filesystems array. It's necessary to keep NULL there after failed
strdup() too, because we call mnt_free_filesystems() to deallocate
after error.

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