Commit c90ea3de by Vicent Marti

Merge pull request #2078 from linquize/msvc

MSVC doesn't like modern code neither
parents 9ff34a53 fbc5661e
...@@ -47,11 +47,10 @@ ...@@ -47,11 +47,10 @@
// as an example. // as an example.
static void check_error(int error_code, const char *action) static void check_error(int error_code, const char *action)
{ {
const git_error *error = giterr_last();
if (!error_code) if (!error_code)
return; return;
const git_error *error = giterr_last();
printf("Error %d %s - %s\n", error_code, action, printf("Error %d %s - %s\n", error_code, action,
(error && error->message) ? error->message : "???"); (error && error->message) ? error->message : "???");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment