...
Noncompliant Code Example
This noncompliant code example uses an if-else statement without braces to authenticate a user.
Code Block | ||
---|---|---|
| ||
int login;
if (invalid_login())
login = 0;
else
login = 1;
|
...
This noncompliant code example uses an if-else statement without braces to authenticate a user.
Code Block | ||
---|---|---|
| ||
int login;
if (invalid_login())
login = 0;
else
login = 1;
|