diff options
Diffstat (limited to 'libmount/src/iter.c')
-rw-r--r-- | libmount/src/iter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmount/src/iter.c b/libmount/src/iter.c index 99fedd17b..393c23eb2 100644 --- a/libmount/src/iter.c +++ b/libmount/src/iter.c @@ -56,7 +56,7 @@ void mnt_reset_iter(struct libmnt_iter *itr, int direction) { assert(itr); - if (direction == -1) + if (direction == -1 && itr) direction = itr->direction; if (itr) { |