Skip to content

Commit

Permalink
Fixed sanitizer warning 'pointer will never be NULL' (removed nullpoi…
Browse files Browse the repository at this point in the history
…nter check).
  • Loading branch information
stfwi committed Nov 3, 2023
1 parent 407d1dc commit 1e543b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion duktape/mod/mod.fs.hh
Original file line number Diff line number Diff line change
Expand Up @@ -1115,7 +1115,7 @@ namespace duktape { namespace detail { namespace filesystem { namespace basic {
err = ::GetLastError();
} else {
do {
if((!ffd.cFileName) || (!ffd.cFileName[0])) continue;
if(!ffd.cFileName[0]) continue;
std::string s(ffd.cFileName);
if((s == ".") || (s == "..")) continue;
stack.push(PathAccessor::to_js(s));
Expand Down

0 comments on commit 1e543b9

Please sign in to comment.