Skip to content

Commit 39b6d6e

Browse files
committed
rxtx: Fix init bug that broke ug_init
In cases that more than one instance of rxtx is needed rxtx_init was wrongly returning the same instance. Before 5098035 the assignment was separate from declaration so ret being static didn't matter
1 parent 5318658 commit 39b6d6e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/rxtx.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ int
443443
rxtx_init(const char *proto_name, const struct rxtx_params *params,
444444
struct rxtx **state)
445445
{
446-
static rxtx *ret = rxtx::create(proto_name, params);
446+
rxtx *ret = rxtx::create(proto_name, params);
447447
if (ret == nullptr) {
448448
return -1;
449449
}

0 commit comments

Comments
 (0)