From 82117aaaeae4b7e0c3813aac985af186a02b7451 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 15 Mar 2008 22:16:42 +0100 Subject: Fix Coverity ID 563 dirmask is always set here, we've dereferenced it before anyway (This used to be commit e6787aa133a1b241987319486c3bc46ac6ad41af) --- source3/client/client.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'source3/client') 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; -- cgit