mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Check that pointer
This commit is contained in:
committed by
Corey Johnson
parent
f5db2b63d8
commit
8195206d04
@@ -52,7 +52,7 @@ public:
|
||||
|
||||
int *ignored;
|
||||
if (git_ignore_path_is_ignored(ignored, repo, path) >= GIT_OK)
|
||||
return CefV8Value::CreateBool(*ignored == 1);
|
||||
return CefV8Value::CreateBool(ignored && *ignored == 1);
|
||||
else
|
||||
return CefV8Value::CreateBool(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user