ret = strerror_r(err, ctx->lib_errstr, sizeof(ctx->lib_errstr));
if ((! ret) || (*ret == '\0')) {
if (*ctx->lib_errstr != '\0')
ret = strerror_r(err, ctx->lib_errstr, sizeof(ctx->lib_errstr));
if ((! ret) || (*ret == '\0')) {
if (*ctx->lib_errstr != '\0')