aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@bofc.pl>2018-02-02 22:01:36 +0100
committerMichał Łyszczek <michal.lyszczek@bofc.pl>2018-02-02 22:01:36 +0100
commitf5cf69d94ce594be2796f75bada6def7993c9d41 (patch)
tree7f530ab1bfeaa09c1f4e3ba15c918a839a2d391e
parent57a2874206420e66d47ac079a8892aae19c7c127 (diff)
downloadlibrb-f5cf69d94ce594be2796f75bada6def7993c9d41.tar.gz
librb-f5cf69d94ce594be2796f75bada6def7993c9d41.tar.bz2
librb-f5cf69d94ce594be2796f75bada6def7993c9d41.zip
fix: rb_discard crashes in single-thread mode
-rw-r--r--rb/rb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rb/rb.c b/rb/rb.c
index e3efd24..34e7c94 100644
--- a/rb/rb.c
+++ b/rb/rb.c
@@ -687,7 +687,7 @@ struct rb *rb_new
* and return, as we don't need to init pthread elements.
*/
- flags |= O_NONBLOCK;
+ rb->flags |= O_NONBLOCK;
return rb;
}