summaryrefslogtreecommitdiff
path: root/base/stringprintf.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2020-04-29 23:45:41 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2020-04-29 23:45:41 +0000
commit7cae3345d3654a23a607b7da4dfa1fa630962cb4 (patch)
treeb7e8837d6db05afde97950cf3e69dbb62c0562f5 /base/stringprintf.cpp
parenta34edf59e3a31c34c71094df30830b2eb5f06bd4 (diff)
parent8c253d4d42018d77b78de8f8c70c6204f5aa6d0e (diff)
Merge "Avoid zero-initializing our most-used buffers."
Diffstat (limited to 'base/stringprintf.cpp')
-rw-r--r--base/stringprintf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/stringprintf.cpp b/base/stringprintf.cpp
index 78e1e8d142..e83ab1316f 100644
--- a/base/stringprintf.cpp
+++ b/base/stringprintf.cpp
@@ -25,7 +25,7 @@ namespace base {
void StringAppendV(std::string* dst, const char* format, va_list ap) {
// First try with a small fixed size buffer
- char space[1024];
+ char space[1024] __attribute__((__uninitialized__));
// It's possible for methods that use a va_list to invalidate
// the data in it upon use. The fix is to make a copy