git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/timeval: don't forget to initialize a rwlock
[sliver-openvswitch.git]
/
lib
/
timeval.c
diff --git
a/lib/timeval.c
b/lib/timeval.c
index
37b4353
..
3262397
100644
(file)
--- a/
lib/timeval.c
+++ b/
lib/timeval.c
@@
-76,6
+76,7
@@
init_clock(struct clock *c, clockid_t id)
{
memset(c, 0, sizeof *c);
c->id = id;
+ ovs_rwlock_init(&c->rwlock);
xclock_gettime(c->id, &c->cache);
}