coverity issue
This commit is contained in:
parent
342fa8882c
commit
f8818e5b75
|
@ -239,7 +239,10 @@ char* strntolower(char *dst, const char *src, int32_t n) {
|
||||||
char quote = 0, *p = dst, c;
|
char quote = 0, *p = dst, c;
|
||||||
|
|
||||||
assert(dst != NULL);
|
assert(dst != NULL);
|
||||||
|
if (n == 0) {
|
||||||
|
*p = 0;
|
||||||
|
return dst;
|
||||||
|
}
|
||||||
for (c = *src++; n-- > 0; c = *src++) {
|
for (c = *src++; n-- > 0; c = *src++) {
|
||||||
if (esc) {
|
if (esc) {
|
||||||
esc = 0;
|
esc = 0;
|
||||||
|
|
Loading…
Reference in New Issue