file: Fix crash on GLOB with no expressions after LIST_DIRECTORIES
Since commit a2c068a7 using LIST_DIRECTORIES
followed by no expression causes a crash. Fix the logic to avoid the crash.
Fixes: #16565 (closed)
Since commit a2c068a7 using LIST_DIRECTORIES
followed by no expression causes a crash. Fix the logic to avoid the crash.
Fixes: #16565 (closed)