From c57fab60daeb2e7a97700699128897a496fdfd6a Mon Sep 17 00:00:00 2001 From: Rick Macklem Date: Sun, 21 Jun 2026 07:42:19 -0700 Subject: [PATCH] nfs_nfsdstate.c: Another unnecessary initialization for gcc This code hasn't changed in a long time, so I don't know why this showed up now? --- sys/fs/nfsserver/nfs_nfsdstate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/fs/nfsserver/nfs_nfsdstate.c b/sys/fs/nfsserver/nfs_nfsdstate.c index 965fdcc01ebe..102af9bb2951 100644 --- a/sys/fs/nfsserver/nfs_nfsdstate.c +++ b/sys/fs/nfsserver/nfs_nfsdstate.c @@ -1829,7 +1829,7 @@ nfsrv_lockctrl(vnode_t vp, struct nfsstate **new_stpp, int specialid = 0; struct nfslockfile *lfp; struct nfslock *other_lop = NULL; - struct nfsstate *stp, *lckstp = NULL; + struct nfsstate *stp = NULL, *lckstp = NULL; /* Shut up gcc. */ struct nfsclient *clp = NULL; u_int32_t bits; int error = 0, haslock = 0, ret, reterr;