mirror of
https://git.proxmox.com/git/libgit2
synced 2025-12-30 19:51:27 +00:00
common: Silly vmg.
This commit is contained in:
parent
8ff66112d9
commit
43efaabd40
@ -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;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user