Use int instead of int*

This commit is contained in:
Kevin Sawicki 2012-10-26 16:39:18 -07:00 committed by Corey Johnson
parent 8195206d04
commit 46e3ec17be

View File

@ -50,9 +50,9 @@ public:
if (!exists) if (!exists)
return CefV8Value::CreateBool(false); return CefV8Value::CreateBool(false);
int *ignored; int ignored;
if (git_ignore_path_is_ignored(ignored, repo, path) >= GIT_OK) if (git_ignore_path_is_ignored(&ignored, repo, path) == GIT_OK)
return CefV8Value::CreateBool(ignored && *ignored == 1); return CefV8Value::CreateBool(ignored == 1);
else else
return CefV8Value::CreateBool(false); return CefV8Value::CreateBool(false);
} }