Skip to content
Commit 452d3dea authored by Peter Bigot's avatar Peter Bigot Committed by Anas Nashif
Browse files

subsys/fs: correct misinterpretation of Zephyr API



The Zephyr fs readdir abstraction returns OK with a zero-length file
name when the last directory entry has been found.  The loop to build
multiple entries instead checked for a non-file entry type.

Correct the loop exit condition.

Signed-off-by: default avatarPeter A. Bigot <pab@pabigot.com>
parent 9b993bef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment