Commit 43efaabd by Vicent Marti

common: Silly vmg.

parent 8ff66112
...@@ -70,11 +70,12 @@ int giterr_set_regex(const regex_t *regex, int error_code); ...@@ -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) 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) if (!structure)
return true; return true;
actual = *(const unsigned int*)structure;
if (actual > 0 && actual <= expected_max) if (actual > 0 && actual <= expected_max)
return true; return true;
......
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