Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 21c99d1

Browse files
Mathias Vorreiter Pedersengeoffw0
andauthored
Typo fix
Co-Authored-By: Geoffrey White <[email protected]>
1 parent d9f931d commit 21c99d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • cpp/ql/test/query-tests/Likely Bugs/Likely Typos/AssignWhereCompareMeant

cpp/ql/test/query-tests/Likely Bugs/Likely Typos/AssignWhereCompareMeant/test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void g(int *i_p, int cond) {
102102
template<typename>
103103
void h() {
104104
int x;
105-
if(x = 0) { // GOOD: x is not initialized so this is probably intensional
105+
if(x = 0) { // GOOD: x is not initialized so this is probably intentional
106106
}
107107

108108
int y = 0;
@@ -152,4 +152,4 @@ void f3(int x, int y) {
152152

153153
if((x == 10) || ((z == z) && (x == 1)) && (y = 2)) { // BAD
154154
}
155-
}
155+
}

0 commit comments

Comments
 (0)