summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-03-15 22:16:42 +0100
committerKarolin Seeger <kseeger@samba.org>2008-03-18 12:10:51 +0100
commit982ec07471b42feefc0e5b4339a2385f44d9f870 (patch)
tree9459fda5ecd0ff33aa8fca78994896cda40a0856 /source
parent92f458bbf772fdbe1a59145368c73aaf92b7bbc3 (diff)
downloadsamba-982ec07471b42feefc0e5b4339a2385f44d9f870.tar.gz
samba-982ec07471b42feefc0e5b4339a2385f44d9f870.tar.xz
samba-982ec07471b42feefc0e5b4339a2385f44d9f870.zip
Fix Coverity ID 563
dirmask is always set here, we've dereferenced it before anyway (cherry picked from commit e6787aa133a1b241987319486c3bc46ac6ad41af)
Diffstat (limited to 'source')
-rw-r--r--source/client/client.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source/client/client.c b/source/client/client.c
index 79b7dfe8389..5b9a9b404e5 100644
--- a/source/client/client.c
+++ b/source/client/client.c
@@ -4097,11 +4097,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;