1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-27 08:23:49 +03:00

r14241: Fix Coverity bug # 146

This commit is contained in:
Volker Lendecke
2006-03-12 17:18:26 +00:00
committed by Gerald (Jerry) Carter
parent 019dff53f9
commit 97789ec8fc

View File

@@ -1200,7 +1200,7 @@ smbc_read_ctx(SMBCCTX *context,
* the call to cli_read() instead of file->offset fixes a problem
* retrieving data at an offset greater than 4GB.
*/
off_t offset = file->offset;
off_t offset;
if (!context || !context->internal ||
!context->internal->_initialized) {
@@ -1219,6 +1219,8 @@ smbc_read_ctx(SMBCCTX *context,
}
offset = file->offset;
/* Check that the buffer exists ... */
if (buf == NULL) {