diff options
author | drh <drh@noemail.net> | 2008-11-07 00:06:18 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2008-11-07 00:06:18 +0000 |
commit | 4c17c3fb115c10c744b710c91177f7090ae2ecb9 (patch) | |
tree | 949f60865c5c609c7944703663fb628bb93605f5 /src/os_os2.c | |
parent | 1735fa8892b658988b1e92a4bc96627ca53510c5 (diff) | |
download | sqlite-4c17c3fb115c10c744b710c91177f7090ae2ecb9.tar.gz sqlite-4c17c3fb115c10c744b710c91177f7090ae2ecb9.zip |
Add documentation to make it clear that short reads from xRead in the VFS
must be zero-filled. (CVS 5867)
FossilOrigin-Name: fb311d6f4098a08f05b3fac9a2a7e2a53c38bb5f
Diffstat (limited to 'src/os_os2.c')
-rw-r--r-- | src/os_os2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/os_os2.c b/src/os_os2.c index 26f905e5b..0a3b1434a 100644 --- a/src/os_os2.c +++ b/src/os_os2.c @@ -12,7 +12,7 @@ ** ** This file contains code that is specific to OS/2. ** -** $Id: os_os2.c,v 1.57 2008/10/13 21:46:47 pweilbacher Exp $ +** $Id: os_os2.c,v 1.58 2008/11/07 00:06:18 drh Exp $ */ #include "sqliteInt.h" @@ -124,6 +124,7 @@ static int os2Read( if( got == (ULONG)amt ) return SQLITE_OK; else { + /* Unread portions of the input buffer must be zero-filled */ memset(&((char*)pBuf)[got], 0, amt-got); return SQLITE_IOERR_SHORT_READ; } |