Skip to content

Commit 9759885

Browse files
committed
Fix null pointer exception reported in #23
1 parent 7ff63fb commit 9759885

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/win/fs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2359,7 +2359,7 @@ static void fs__chmod(uv_fs_t* req) {
23592359
* We fix it by forcibly clearing some kind of cache by setting the security info with the
23602360
* old DACL, then attempting to read it in again.
23612361
*/
2362-
if (numOldEAs != pOldDACL->AceCount) {
2362+
if (pOldDACL != NULL && numOldEAs != pOldDACL->AceCount) {
23632363
if (ERROR_SUCCESS != SetNamedSecurityInfoW(
23642364
req->file.pathw,
23652365
SE_FILE_OBJECT,

0 commit comments

Comments
 (0)