]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- braces in view.c around lock statements.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 29 Nov 2016 15:28:25 +0000 (15:28 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 29 Nov 2016 15:28:25 +0000 (15:28 +0000)
git-svn-id: file:///svn/unbound/trunk@3939 be551aaa-1e26-0410-a405-d3ace91eadb9

doc/Changelog
services/view.c

index 94e48c851e5b66c1c37f51cf9e6494c94a5938bb..f1bbdfa9649e29a7befba232dca918baa76a63d7 100644 (file)
@@ -1,5 +1,6 @@
 29 November 2016: Wouter
        - version 1.6.0 is in the development branch.
+       - braces in view.c around lock statements.
 
 28 November 2016: Wouter
        - new install-sh.
index 1efe485880542e6fe0b6d02b12a0b59c52d40570..b2d86513d4f49a5fe16fa77a56dda6570efc6cbc 100644 (file)
@@ -191,10 +191,11 @@ views_find_view(struct views* vs, const char* name, int write)
                lock_rw_unlock(&vs->lock);
                return 0;
        }
-       if(write)
+       if(write) {
                lock_rw_wrlock(&v->lock);
-       else
+       } else {
                lock_rw_rdlock(&v->lock);
+       }
        lock_rw_unlock(&vs->lock);
        return v;
 }