summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 79032bd)
raw | patch | inline | side by side (parent: 79032bd)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Sun, 16 Aug 2015 11:47:24 +0000 (13:47 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 26 Aug 2015 21:32:54 +0000 (23:32 +0200) |
Fixes make check on OpenBSD
src/utils_vl_lookup.c | patch | blob | history |
diff --git a/src/utils_vl_lookup.c b/src/utils_vl_lookup.c
index 8180d0d9ea60380b3c4705eab4654615ea2c9bf3..b15dcf0225bb66257fbb4303a663df9e49bebc31 100644 (file)
--- a/src/utils_vl_lookup.c
+++ b/src/utils_vl_lookup.c
{
/* call lookup_class_callback_t() and insert into the list of user objects. */
user_obj = lu_create_user_obj (obj, ds, vl, user_class);
- pthread_mutex_unlock (&user_class->lock);
- if (user_obj == NULL)
+ if (user_obj == NULL) {
+ pthread_mutex_unlock (&user_class->lock);
return (-1);
+ }
}
pthread_mutex_unlock (&user_class->lock);