regtest: fix warning

Added a nice const named variable then didn't use it
This commit is contained in:
Paul Floyd
2026-01-03 22:32:56 +01:00
parent 987034c441
commit dae37ecd26

View File

@@ -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