diff options
author | Andreas Schneider <asn@samba.org> | 2012-12-06 14:35:48 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2012-12-12 15:00:02 +0100 |
commit | e5deaa29689ca53b5ba96836ff787281fdba06f1 (patch) | |
tree | a747a79c868528bc40a48e8be861b2343d9fd510 /source3 | |
parent | 62646b7666178bf03cd650056a61338e84b54b25 (diff) | |
download | samba-e5deaa29689ca53b5ba96836ff787281fdba06f1.tar.gz samba-e5deaa29689ca53b5ba96836ff787281fdba06f1.tar.bz2 samba-e5deaa29689ca53b5ba96836ff787281fdba06f1.zip |
s3-lib: Remove unsused variable from sys_get_nfs_quota().
testpath is the same a few lines later.
Found by Coverity.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/sysquotas_nfs.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |