diff --git a/examples/Example.h b/examples/Example.h index 583ffc9f..e905bf59 100644 --- a/examples/Example.h +++ b/examples/Example.h @@ -90,6 +90,8 @@ struct Example auto rpath = realpath(path, buf); #endif + if (!rpath) return; + //open directory #ifdef _WIN32 WIN32_FIND_DATA fd;