commit | 98447577c8cd344c954241cc0dafb8273997a037 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Thu Mar 30 12:08:29 2023 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Mar 30 12:08:29 2023 +0200 |
tree | 306fce6e1a11c00d142e563c01938ec2e405f327 | |
parent | 48c00d8b6487b5df5dfb955fda93a89c5aa2d31a [diff] |
context BUGFIX do not assume pthrea_t is a number
diff --git a/src/context.c b/src/context.c index c2c5bab..05b16f6 100644 --- a/src/context.c +++ b/src/context.c
@@ -236,7 +236,7 @@ { struct ly_ctx_err_rec *err1 = val1_p, *err2 = val2_p; - return err1->tid == err2->tid; + return !memcmp(&err1->tid, &err2->tid, sizeof err1->tid); } LIBYANG_API_DEF LY_ERR