From: Paul Floyd Date: Sat, 3 Jan 2026 21:32:56 +0000 (+0100) Subject: regtest: fix warning X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dae37ecd2692e0e5beba77c296c2648ebbf47637;p=thirdparty%2Fvalgrind.git regtest: fix warning Added a nice const named variable then didn't use it --- diff --git a/none/tests/bug514094.c b/none/tests/bug514094.c index 848db1d82..5010272cb 100644 --- a/none/tests/bug514094.c +++ b/none/tests/bug514094.c @@ -26,8 +26,8 @@ int main(int argc, char** argv) assert(strcmp(resolved, buf) == 0); const size_t small_buf_size = 11; - char small_buf[11]; - memset(small_buf, '#', 11); + char small_buf[small_buf_size]; + memset(small_buf, '#', small_buf_size); #if defined(VGO_solaris) ret = readlink("/proc/self/path/a.out", small_buf, 10); #else