Check that pointer

This commit is contained in:
Kevin Sawicki
2012-10-26 16:34:15 -07:00
committed by Corey Johnson
parent f5db2b63d8
commit 8195206d04

View File

@@ -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);
}