- braces in view.c around lock statements.

git-svn-id: file:///svn/unbound/trunk@3939 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2016-11-29 15:28:25 +00:00
parent e502757963
commit 6450a5b191
2 changed files with 4 additions and 2 deletions

View 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.

View 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;
}