summaryrefslogtreecommitdiffstats
path: root/shlibs
diff options
context:
space:
mode:
authorKarel Zak2010-07-09 13:50:51 +0200
committerKarel Zak2011-01-03 12:28:40 +0100
commit5283b1ce50b23be633a1fbb228dd6f85a7b34dca (patch)
treeab53042594715f24d7b2c9a1949b69f128ff033f /shlibs
parentlibmount: clean up mount.sym file (diff)
downloadkernel-qcow2-util-linux-5283b1ce50b23be633a1fbb228dd6f85a7b34dca.tar.gz
kernel-qcow2-util-linux-5283b1ce50b23be633a1fbb228dd6f85a7b34dca.tar.xz
kernel-qcow2-util-linux-5283b1ce50b23be633a1fbb228dd6f85a7b34dca.zip
libmount: don't return old data from optls iterator
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs')
-rw-r--r--shlibs/mount/src/optls.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/shlibs/mount/src/optls.c b/shlibs/mount/src/optls.c
index ff2b912bd..289f40d76 100644
--- a/shlibs/mount/src/optls.c
+++ b/shlibs/mount/src/optls.c
@@ -386,6 +386,9 @@ int mnt_optls_next_option(mnt_optls *ls, mnt_iter *itr,
if (!itr || !ls || !option)
return -1;
+
+ *option = NULL;
+
if (!itr->head)
MNT_ITER_INIT(itr, &ls->opts);
while (itr->p != itr->head) {