]> git.pld-linux.org Git - packages/Mesa.git/blob - b101832.patch
up to 24.0.7
[packages/Mesa.git] / b101832.patch
1 https://bugs.freedesktop.org/show_bug.cgi?id=101832
2
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);
8  #else
9 -    output = getenv(variableName.c_str());
10 +    char *o = getenv(variableName.c_str());
11 +    output = o ? std::string(o) : std::string();
12  #endif
13  
14      return output;
This page took 0.178311 seconds and 3 git commands to generate.