diff options
author | Sebastian Parborg <darkdefende@gmail.com> | 2021-10-04 12:53:12 +0300 |
---|---|---|
committer | Sebastian Parborg <darkdefende@gmail.com> | 2021-10-04 12:55:09 +0300 |
commit | f2b86471eaa48f09f534195c7b1095f85e2b7ff8 (patch) | |
tree | 9154978fd319055433037724f01417482031bf1c /source/blender/blenlib/intern/session_uuid.c | |
parent | 37003cbbc12d30e6a5cf4bc425a34c232a24fe66 (diff) |
Fix session uuid ghash comparison return value
Because of legacy reasons (C string compare function returning 0 when
strings are equal), the ghash compare function is expected to return
false when hashes are equal.
Diffstat (limited to 'source/blender/blenlib/intern/session_uuid.c')
-rw-r--r-- | source/blender/blenlib/intern/session_uuid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/intern/session_uuid.c b/source/blender/blenlib/intern/session_uuid.c index 8ed96f02149..ac15a400a92 100644 --- a/source/blender/blenlib/intern/session_uuid.c +++ b/source/blender/blenlib/intern/session_uuid.c @@ -74,5 +74,5 @@ bool BLI_session_uuid_ghash_compare(const void *lhs_v, const void *rhs_v) { const SessionUUID *lhs = (const SessionUUID *)lhs_v; const SessionUUID *rhs = (const SessionUUID *)rhs_v; - return BLI_session_uuid_is_equal(lhs, rhs); + return !BLI_session_uuid_is_equal(lhs, rhs); } |