Skip to content

Commit e299ccc

Browse files
committed
C++: Simplify test
1 parent 4efbc6e commit e299ccc

File tree

1 file changed

+2
-2
lines changed
  • cpp/ql/test/query-tests/Likely Bugs/Memory Management/ReturnStackAllocatedMemory

1 file changed

+2
-2
lines changed

cpp/ql/test/query-tests/Likely Bugs/Memory Management/ReturnStackAllocatedMemory/test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ void* test_strndupa(const char* s, size_t size) {
250250
return s2; // BAD
251251
}
252252

253-
int* f_rec(int *p, bool b) {
253+
int* f_rec(int *p) {
254254
int x;
255-
int* px = f_rec(&x, b); // GOOD
255+
int* px = f_rec(&x); // GOOD
256256
return p;
257257
}

0 commit comments

Comments
 (0)