summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: eb7c951)
raw | patch | inline | side by side (parent: eb7c951)
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) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1020 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_thread_safe.c | patch | blob | history |
diff --git a/src/rrd_thread_safe.c b/src/rrd_thread_safe.c
index 2ce649bad52ae8ff72e779bcc6008ef9d444c8c5..2b168766b0592aa770d3201094de48e6775db36f 100644 (file)
--- a/src/rrd_thread_safe.c
+++ b/src/rrd_thread_safe.c
#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