diff options
author | Russell Belfer <arrbee@arrbee.com> | 2012-03-07 10:52:17 -0800 |
---|---|---|
committer | Russell Belfer <arrbee@arrbee.com> | 2012-03-07 10:52:17 -0800 |
commit | 998f7b3dd76afbf462785a757b24a3554ad8534d (patch) | |
tree | d3252b284dc3fb1ebe61ecba76d03902bc7c81a7 /src/errors.c | |
parent | ae9e29fde7e7d1c0c3e95bdabbb5c96fc71b1c71 (diff) | |
download | libgit2-998f7b3dd76afbf462785a757b24a3554ad8534d.tar.gz |
Fix issues raised on pull request
This resolves the comments on pull request #590
Diffstat (limited to 'src/errors.c')
-rw-r--r-- | src/errors.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/errors.c b/src/errors.c index 0454856cf..c25fa7519 100644 --- a/src/errors.c +++ b/src/errors.c @@ -124,7 +124,7 @@ void giterr_set(int error_class, const char *string, ...) va_list arglist; git_error *error; const char *oserr = - (error_class == GITERR_OS && errno > 0) ? strerror(errno) : NULL; + (error_class == GITERR_OS && errno != 0) ? strerror(errno) : NULL; error = &GIT_GLOBAL->error_t; free(error->message); |