mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-02 12:57:14 -05:00
Fixes some minor code issues found with coverity scan.
This commit is contained in:
parent
8c8b370d4c
commit
23060095c9
4 changed files with 6 additions and 5 deletions
|
|
@ -538,7 +538,7 @@ int sgethex(STREAM* f, void* void_data, int size)
|
|||
return -1;
|
||||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
b0 = strdecset[c];
|
||||
b0 = strdecset[(unsigned char)c];
|
||||
|
||||
c = sgetc(f);
|
||||
if (c == EOF) {
|
||||
|
|
@ -546,7 +546,7 @@ int sgethex(STREAM* f, void* void_data, int size)
|
|||
return -1;
|
||||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
b1 = strdecset[c];
|
||||
b1 = strdecset[(unsigned char)c];
|
||||
|
||||
b = (b0 << 4) | b1;
|
||||
|
||||
|
|
@ -1670,7 +1670,7 @@ int lock_lock(const char* file)
|
|||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
|
||||
return 0;
|
||||
return f;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue