13 lines
349 B
Diff
13 lines
349 B
Diff
|
--- src/rrd_thread_safe.c
|
||
|
+++ src/rrd_thread_safe.c
|
||
|
@@ -51,7 +51,8 @@
|
||
|
#ifdef HAVE_STRERROR_R
|
||
|
const char *rrd_strerror(int err) {
|
||
|
struct rrd_context *ctx = rrd_get_context();
|
||
|
- return strerror_r(err, ctx->lib_errstr, ctx->errlen);
|
||
|
+ strerror_r(err, ctx->lib_errstr, ctx->errlen);
|
||
|
+ return ctx->lib_errstr;
|
||
|
}
|
||
|
#else
|
||
|
#undef strerror
|