]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Refix dlclose_leak.c test.
authorMark Wielaard <mark@klomp.org>
Tue, 16 Jan 2018 10:23:42 +0000 (11:23 +0100)
committerMark Wielaard <mark@klomp.org>
Tue, 16 Jan 2018 10:31:43 +0000 (11:31 +0100)
By introducing an extra line to declare int i; we broke the expected
line numbers in the test. Just declare i on the same line as the for loop.

memcheck/tests/linux/dlclose_leak.c

index 0a8fba37fbc8659e20b9ae0dd791bbc10fdb0662..3161b15c17317ba9cb59a7bfbe28452b7e4e0efa 100644 (file)
@@ -11,8 +11,7 @@ char* (*alloc_1_byte)(void);
 
 int main(int argc, char** argv)
 {
-    int i;
-    for (i = 0; i < 2; ++i)
+    int i; for (i = 0; i < 2; ++i)
     {
         char* memToLeak;
         char x __attribute__((unused));