1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

Fix harmless compiler warnings in the new unixFullPathname implementation.

FossilOrigin-Name: f7e1ceb5b59a876cfd04a8aac0ee2b322c970555b9c361b4953d711ef6596e37
This commit is contained in:
drh
2022-05-17 15:11:57 +00:00
parent 5348fbe332
commit b8b2d9c5e1
3 changed files with 10 additions and 9 deletions

View File

@@ -6484,7 +6484,7 @@ static void appendOnePathElement(
return;
}
got = osReadlink(zIn, zLnk, sizeof(zLnk)-2);
if( got<=0 || got>=sizeof(zLnk)-2 ){
if( got<=0 || got>=(ssize_t)sizeof(zLnk)-2 ){
pPath->rc = unixLogError(SQLITE_CANTOPEN_BKPT, "readlink", zIn);
return;
}
@@ -6534,6 +6534,7 @@ static int unixFullPathname(
char *zOut /* Output buffer */
){
DbPath path;
UNUSED_PARAMETER(pVfs);
path.rc = 0;
path.nUsed = 0;
path.nSymlink = 0;