Date: Thursday, October 19, 2017 @ 16:22:01 Author: lcarlier Revision: 308264
upgpkg: mesa 17.2.3-1 upstream update 17.2.3 Deleted: mesa/trunk/swr-rast-do-not-crash-on-NULL-strings-returned-by-getenv.patch ----------------------------------------------------------------+ swr-rast-do-not-crash-on-NULL-strings-returned-by-getenv.patch | 14 ---------- 1 file changed, 14 deletions(-) Deleted: swr-rast-do-not-crash-on-NULL-strings-returned-by-getenv.patch =================================================================== --- swr-rast-do-not-crash-on-NULL-strings-returned-by-getenv.patch 2017-10-19 16:21:09 UTC (rev 308263) +++ swr-rast-do-not-crash-on-NULL-strings-returned-by-getenv.patch 2017-10-19 16:22:01 UTC (rev 308264) @@ -1,14 +0,0 @@ -diff --git a/src/gallium/drivers/swr/rasterizer/core/utils.h b/src/gallium/drivers/swr/rasterizer/core/utils.h -index b096d2120cb..3c849e82d3b 100644 ---- a/src/gallium/drivers/swr/rasterizer/core/utils.h -+++ b/src/gallium/drivers/swr/rasterizer/core/utils.h -@@ -365,7 +365,8 @@ static INLINE std::string GetEnv(const std::string& variableName) - output.resize(valueSize - 1); // valueSize includes null, output.resize() does not - GetEnvironmentVariableA(variableName.c_str(), &output[0], valueSize); - #else -- output = getenv(variableName.c_str()); -+ char *o = getenv(variableName.c_str()); -+ output = o ? std::string(o) : std::string(); - #endif - - return output;