Menu

#6 recover.c: 2 * bad if test ?

open
nobody
None
5
2016-06-17
2016-06-17
dcb
No

1.

recover.c:803]: (style) Checking if unsigned variable 'bytesread' is less than zero.

Source code is

bytesread = nocache_read_block(sbnr, buffer, rbs);
if (bytesread < 0) {
  retval = -1;
  break;
}

but

size_t bytesread,

2.

recover.c:852]: (style) Checking if unsigned variable 'bytesread' is less than zero.

Duplicate.

Discussion


Log in to post a comment.