Commit 2ea16b99 authored by Alexey Yurchenko's avatar Alexey Yurchenko Committed by Nirbhay Choubey

This commit fixes

  - errno handling in wsp::env::append() method, where error could be returned by mistake
  - return code of sst_prepare_other() when pthread_create() fails - it was returning positive error code which by convention is treated as success.
parent 0ccbbffb
......@@ -165,10 +165,9 @@ env::append(const char* val)
++len_;
env_[len_] = NULL;
}
else errno_ = errno;
}
/* if either realloc() or strdup() failed, errno had been set */
errno_ = errno;
else errno_ = errno;
return errno_;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment