]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: initialize *root to NULL in mnt_table_get_root_fs
authorThomas Bächler <thomas@archlinux.org>
Sun, 16 Feb 2014 13:58:06 +0000 (14:58 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 17 Feb 2014 12:36:47 +0000 (13:36 +0100)
commit2e358a901f0a20fe9abe68f9ce6ce3efa87836dd
treeece11c97fffe2fcd9bd9a0ff1e2fe99b92f42de4
parent270ab78a0c84a0d580d3dfa257813abbba385687
libmount: initialize *root to NULL in mnt_table_get_root_fs

mnt_table_get_root_fs only works when *root is set to NULL. This
is not only undocumented, but also unintuitive. Fix it by initializing
*root inside mnt_table_get_root_fs.

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