Skip to content

Commit c720f0c

Browse files
authored
Merge pull request kstenerud#319 from phedlund/master
Add null check to prevent crashes on watchOS.
2 parents be01cc3 + 9444aea commit c720f0c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Source/KSCrash/Recording/Tools/KSFileUtils.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,10 @@ bool ksfu_removeFile(const char* path, bool mustExist)
437437

438438
bool ksfu_deleteContentsOfPath(const char* path)
439439
{
440+
if(path == NULL)
441+
{
442+
return false;
443+
}
440444
if(!canDeletePath(path))
441445
{
442446
return false;

0 commit comments

Comments
 (0)