summarylogtreecommitdiffstats
path: root/swr-rast-do-not-crash-on-NULL-strings-returned-by-getenv.patch
diff options
context:
space:
mode:
authorVi0L02018-04-29 18:04:08 +0200
committerVi0L02018-04-29 18:04:08 +0200
commit17ba3289e4fea2e4e90b4ee1c2123fd9f6d1d838 (patch)
tree6bc413d5adc114441dc8452e0e896c985b2bbc93 /swr-rast-do-not-crash-on-NULL-strings-returned-by-getenv.patch
parent3fcb34180b103f0d2c5fb0c08c1f6f0e6e749dc9 (diff)
downloadaur-17ba3289e4fea2e4e90b4ee1c2123fd9f6d1d838.tar.gz
18.0.2
Diffstat (limited to 'swr-rast-do-not-crash-on-NULL-strings-returned-by-getenv.patch')
-rw-r--r--swr-rast-do-not-crash-on-NULL-strings-returned-by-getenv.patch14
1 files changed, 0 insertions, 14 deletions
diff --git a/swr-rast-do-not-crash-on-NULL-strings-returned-by-getenv.patch b/swr-rast-do-not-crash-on-NULL-strings-returned-by-getenv.patch
deleted file mode 100644
index b9e81f9a32fe..000000000000
--- a/swr-rast-do-not-crash-on-NULL-strings-returned-by-getenv.patch
+++ /dev/null
@@ -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;