From e5deaa29689ca53b5ba96836ff787281fdba06f1 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 6 Dec 2012 14:35:48 +0100 Subject: s3-lib: Remove unsused variable from sys_get_nfs_quota(). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit testpath is the same a few lines later. Found by Coverity. Signed-off-by: Andreas Schneider Reviewed-by: Günther Deschner --- source3/lib/sysquotas_nfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/lib/sysquotas_nfs.c b/source3/lib/sysquotas_nfs.c index ad98152029..63f114b057 100644 --- a/source3/lib/sysquotas_nfs.c +++ b/source3/lib/sysquotas_nfs.c @@ -107,7 +107,7 @@ int sys_get_nfs_quota(const char *path, const char *bdev, struct getquota_rslt gq_rslt; struct getquota_args gq_args; const char *mnttype; - char *cutstr, *pathname, *host, *testpath; + char *cutstr, *host, *testpath; int len; static struct timeval timeout = {2,0}; enum clnt_stat clnt_stat; @@ -136,7 +136,6 @@ int sys_get_nfs_quota(const char *path, const char *bdev, mnttype = bdev; len = strcspn(mnttype, ":"); - pathname = strstr(mnttype, ":"); cutstr = (char *) SMB_MALLOC(len+1); if (cutstr == NULL) { errno = ENOMEM; -- cgit