Fixes some minor code issues found with coverity scan.

This commit is contained in:
Andrea Mazzoleni 2014-05-09 22:07:07 +02:00
parent 8c8b370d4c
commit 23060095c9
4 changed files with 6 additions and 5 deletions

View file

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