diff options
author | drh <drh@noemail.net> | 2018-02-21 00:48:02 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2018-02-21 00:48:02 +0000 |
commit | 4f4e49a98b8d3a28384e4a14df23ae4b98e63868 (patch) | |
tree | 3da45aa2bb3dcf77815966c96a17fd3a6409339b /src/os_unix.c | |
parent | 2e178d7321265e21fcec226345267d57a61560ca (diff) | |
download | sqlite-4f4e49a98b8d3a28384e4a14df23ae4b98e63868.tar.gz sqlite-4f4e49a98b8d3a28384e4a14df23ae4b98e63868.zip |
Remove an unnecessary memset().
FossilOrigin-Name: e7b7f5884a78630c6ba6a217c36247397e62f1928d4b480df929efcfc4a01893
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index cb2ae33d0..5a1d396ce 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -4180,12 +4180,10 @@ static int unixShmSystemLock( if( pShmNode->h>=0 ){ /* Initialize the locking parameters */ - memset(&f, 0, sizeof(f)); f.l_type = lockType; f.l_whence = SEEK_SET; f.l_start = ofst; f.l_len = n; - rc = osFcntl(pShmNode->h, F_SETLK, &f); rc = (rc!=(-1)) ? SQLITE_OK : SQLITE_BUSY; } |