summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 48da095)
raw | patch | inline | side by side (parent: 48da095)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 15 Mar 2007 21:03:51 +0000 (21:03 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Thu, 15 Mar 2007 21:03:51 +0000 (21:03 +0000) |
program/src/rrd_thread_safe.c | patch | blob | history |
index 2ce649bad52ae8ff72e779bcc6008ef9d444c8c5..2b168766b0592aa770d3201094de48e6775db36f 100644 (file)
#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);
+ if (strerror_r(err, ctx->lib_errstr, ctx->errlen))
+ return "strerror_r faild. sorry!";
+ else
+ return ctx->lib_errstr;
}
#else
#undef strerror