From 7c6998398f37eed74e662fa86c5066e8d2a24287 Mon Sep 17 00:00:00 2001 From: "D. Richard Hipp" Date: Wed, 21 Feb 2018 00:48:02 +0000 Subject: [PATCH] Remove an unnecessary memset(). --- src/os_unix.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/os_unix.c b/src/os_unix.c index cb2ae33d0a..5a1d396ce2 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; } -- 2.11.4.GIT