1 https://bugs.freedesktop.org/show_bug.cgi?id=101832
3 --- mesa-17.2.0-rc5/src/gallium/drivers/swr/rasterizer/core/utils.h.omv~ 2017-08-31 00:39:53.063561929 +0200
4 +++ mesa-17.2.0-rc5/src/gallium/drivers/swr/rasterizer/core/utils.h 2017-08-31 00:40:13.853833494 +0200
5 @@ -347,7 +347,8 @@ static INLINE std::string GetEnv(const s
6 output.resize(valueSize - 1); // valueSize includes null, output.resize() does not
7 GetEnvironmentVariableA(variableName.c_str(), &output[0], valueSize);
9 - output = getenv(variableName.c_str());
10 + char *o = getenv(variableName.c_str());
11 + output = o ? std::string(o) : std::string();