mirror of
https://github.com/github/codeql.git
synced 2026-05-24 16:17:07 +02:00
12 lines
243 B
C++
12 lines
243 B
C++
void test(char *arg1, int *arg2) {
|
|
if (arg1[0] == 'A') {
|
|
if (arg2 != NULL) { //maybe redundant
|
|
*arg2 = 42;
|
|
}
|
|
}
|
|
if (arg1[1] == 'B')
|
|
{
|
|
*arg2 = 54; //dereferenced without checking first
|
|
}
|
|
}
|