From dae37ecd2692e0e5beba77c296c2648ebbf47637 Mon Sep 17 00:00:00 2001 From: Paul Floyd Date: Sat, 3 Jan 2026 22:32:56 +0100 Subject: [PATCH] regtest: fix warning Added a nice const named variable then didn't use it --- none/tests/bug514094.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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