diff options
author | Ahmad Samir <a.samirh78@gmail.com> | 2023-12-17 22:07:30 +0200 |
---|---|---|
committer | Ahmad Samir <a.samirh78@gmail.com> | 2024-02-03 00:12:00 +0200 |
commit | 0516d48ae9538d7c51e270f1b90d601d437dc060 (patch) | |
tree | 6c65dbcbcf5fdc04da53485a3c0ff9a5cda23a44 /src/corelib/io/qdiriterator.cpp | |
parent | 3758829162ec38c1b010a0ee4ac836da6180bb55 (diff) |
QFileSystemIterator: set errno to 0 before calling readdir()
So that errno can be used to distinguish between "reached end of dir
stream" state and an error.
Set errno to something more useful (EILSEQ) when we fail to decode an
entry's name, requested by Thiago in code review.
Change-Id: I8091144d25e5e5aa875cf40eaf6ee13c9e409ee7
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qdiriterator.cpp')
0 files changed, 0 insertions, 0 deletions