git.samba.org
/
sfrench
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
62646b7
)
s3-lib: Remove unsused variable from sys_get_nfs_quota().
author
Andreas Schneider
<asn@samba.org>
Thu, 6 Dec 2012 13:35:48 +0000
(14:35 +0100)
committer
Günther Deschner
<gd@samba.org>
Wed, 12 Dec 2012 14:00:02 +0000
(15:00 +0100)
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>
source3/lib/sysquotas_nfs.c
patch
|
blob
|
history
diff --git
a/source3/lib/sysquotas_nfs.c
b/source3/lib/sysquotas_nfs.c
index ad98152029870789c5a67f14b73e9ab4fbffc489..63f114b057fdab3b4fc68cf42c9fce9dc8031e58 100644
(file)
--- 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;