diff options
author | Franck Bui <fbui@suse.com> | 2018-04-18 18:32:21 +0200 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2018-08-24 16:47:08 +0200 |
commit | 716268fa6f3b5d2d385c6efd969fa209125f256c (patch) | |
tree | 1f8c4a4a6ca2d3245e806da24b721491d38a474a /src/test/test-fs-util.c | |
parent | 16e69d6d425ae58ef5760e5d575bad7d9239b3da (diff) |
sysusers: make sure to reset the returned value when EOF is reached in fget*ent_sane() wrappers (#8737)
To indicate that the there're no more entries, these wrappers return false but
did leave the passed pointed unmodified.
However EOF is not an error and is a very common case so initialize the output
argument to NULL even in this case so callers don't need to do that.
Fixes: #8721
Diffstat (limited to 'src/test/test-fs-util.c')
0 files changed, 0 insertions, 0 deletions