mirror of
https://github.com/github/codeql.git
synced 2026-01-17 08:24:46 +01:00
CPP: Apply suggestions from code review of incorrect scanf check
Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com>
This commit is contained in:
committed by
GitHub
parent
f3f53570a4
commit
2e92689810
@@ -1,7 +1,7 @@
|
||||
{
|
||||
int i, j;
|
||||
|
||||
// BAD:The result is only checked against zero
|
||||
// BAD: The result is only checked against zero
|
||||
if (scanf("%d %d", &i, &j)) {
|
||||
use(i);
|
||||
use(j);
|
||||
|
||||
Reference in New Issue
Block a user