CPP: Apply suggestions from code review of incorrect scanf check

Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com>
This commit is contained in:
Alexander Eyers-Taylor
2023-12-04 18:32:03 +00:00
committed by GitHub
parent f3f53570a4
commit 2e92689810
2 changed files with 3 additions and 3 deletions

View File

@@ -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);