summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@online.no>2024-04-18 12:26:38 +0200
committerTor Egge <Tor.Egge@online.no>2024-04-18 12:26:38 +0200
commitee5602a23a3ba50c2c7f089f85cb78bd1c61eaa7 (patch)
treee6fcab0017db432d0064fa8d2f8e9e6beb9e4a0c /searchlib/src/tests
parent649bc559f5f465c789add49634925239510a06c2 (diff)
Add variable-length array comments.
Diffstat (limited to 'searchlib/src/tests')
-rw-r--r--searchlib/src/tests/aggregator/perdocexpr_test.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/searchlib/src/tests/aggregator/perdocexpr_test.cpp b/searchlib/src/tests/aggregator/perdocexpr_test.cpp
index 908e50ad4d2..e9f0981739c 100644
--- a/searchlib/src/tests/aggregator/perdocexpr_test.cpp
+++ b/searchlib/src/tests/aggregator/perdocexpr_test.cpp
@@ -604,6 +604,7 @@ getVespaChecksumV2(const std::string& ymumid, int fid, const std::string& flags_
sizeof(networkFid)+
new_flags_str.length();
+ // GNU extension: Variable-length automatic array
unsigned char buffer[length];
memset(buffer, 0x00, length);
memcpy(buffer, ymumid.c_str(), ymumid.length());