summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-15 22:16:42 +0100
committerVolker Lendecke <vl@samba.org>2008-03-15 22:30:25 +0100
commit82117aaaeae4b7e0c3813aac985af186a02b7451 (patch)
tree45fd254c0250a37ae789c3c2061e462a5ab5e9d9
parentfa495ce1c1ee0ac668d083c97bb75d90e9b34e81 (diff)
downloadsamba-82117aaaeae4b7e0c3813aac985af186a02b7451.tar.gz
samba-82117aaaeae4b7e0c3813aac985af186a02b7451.tar.bz2
samba-82117aaaeae4b7e0c3813aac985af186a02b7451.zip
Fix Coverity ID 563
dirmask is always set here, we've dereferenced it before anyway (This used to be commit e6787aa133a1b241987319486c3bc46ac6ad41af)
-rw-r--r--source3/client/client.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index b0b3e8e19b..a285bccfe7 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -4102,11 +4102,7 @@ static void completion_remote_filter(const char *mnt,
TALLOC_CTX *ctx = talloc_stackframe();
char *tmp;
- if (info->dirmask && info->dirmask[0] != 0) {
- tmp = talloc_strdup(ctx,info->dirmask);
- } else {
- tmp = talloc_strdup(ctx,"");
- }
+ tmp = talloc_strdup(ctx,info->dirmask);
if (!tmp) {
TALLOC_FREE(ctx);
return;