mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 14:27:37 +08:00
fs/mmap: Fixed compiler warning about access to uninitialized variable in rammap(...)
This commit is contained in:
committed by
Gregory Nutt
parent
eb4539c305
commit
f0ad45ee27
+1
-1
@@ -189,7 +189,7 @@ FAR void *rammap(int fd, size_t length, off_t offset)
|
|||||||
ferr("ERROR: Read failed: offset=%d errno=%d\n",
|
ferr("ERROR: Read failed: offset=%d errno=%d\n",
|
||||||
(int)offset, (int)nread);
|
(int)offset, (int)nread);
|
||||||
|
|
||||||
errcode = (int)-ret;
|
errcode = (int)-nread;
|
||||||
goto errout_with_region;
|
goto errout_with_region;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user