From 982ec07471b42feefc0e5b4339a2385f44d9f870 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 15 Mar 2008 22:16:42 +0100 Subject: [PATCH] Fix Coverity ID 563 dirmask is always set here, we've dereferenced it before anyway (cherry picked from commit e6787aa133a1b241987319486c3bc46ac6ad41af) --- source/client/client.c | 6 +----- 1 file changed, 1 insertion(+), 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; -- 2.11.4.GIT