mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
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.
This commit is contained in:
committed by
Nirbhay Choubey
parent
1b1410c449
commit
d809fcc301
@ -1,4 +1,4 @@
|
||||
/* Copyright 2010 Codership Oy <http://www.codership.com>
|
||||
/* Copyright 2010-2015 Codership Oy <http://www.codership.com>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@ -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_;
|
||||
}
|
||||
|
Reference in New Issue
Block a user