diff --git a/client/src/session/local/attribute.cc b/client/src/session/local/attribute.cc index 3fdc34a..7473e00 100644 --- a/client/src/session/local/attribute.cc +++ b/client/src/session/local/attribute.cc @@ -196,11 +196,15 @@ get.asString = [](const Attribute & attr, const void *worker) { + errno = 0; + const struct Worker * w = (const struct Worker *) worker; const char * str = w->methods->get(w->hSession); if(str) { return string(str); + } else if(!errno) { + return string(); } throw std::system_error(errno, std::system_category()); -- libgit2 0.21.2