diff options
author | Vicent Marti <tanoku@gmail.com> | 2012-12-05 23:54:03 +0400 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2012-12-05 23:54:03 +0400 |
commit | 43efaabd40d8f9773a2fccb8acea704332446008 (patch) | |
tree | dddd00e8083dd17bb77270c3871c81bb83c6808d /src/common.h | |
parent | 8ff66112d9c671c44603e2c8f1dd0dc803d9d6f9 (diff) |
common: Silly vmg.
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common.h b/src/common.h index 3f9dedd91..c7f4fdd96 100644 --- a/src/common.h +++ b/src/common.h @@ -70,11 +70,12 @@ int giterr_set_regex(const regex_t *regex, int error_code); */ GIT_INLINE(bool) giterr__check_version(const void *structure, unsigned int expected_max, const char *name) { - unsigned int actual = *(const unsigned int*)structure; + unsigned int actual; if (!structure) return true; + actual = *(const unsigned int*)structure; if (actual > 0 && actual <= expected_max) return true; |