summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-06-04 23:31:34 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:23:08 -0500
commit902daae1c706e493b5c433dc729c6fd581613c91 (patch)
tree7b8cf48057f77c990ae295604e4a4fe5c298fc0d /source3/libsmb
parent72e76cb90b26a0ff907bdd16b61de3a95984e9a8 (diff)
downloadsamba-902daae1c706e493b5c433dc729c6fd581613c91.tar.gz
samba-902daae1c706e493b5c433dc729c6fd581613c91.tar.bz2
samba-902daae1c706e493b5c433dc729c6fd581613c91.zip
r23347: Fix Coverity 363. Dead code elimination.
Jeremy. (This used to be commit 4524ee2dbcd5c1c66085032de67c6d083f91cb8a)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clifile.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c
index 61c4347b5b..64b3e652cf 100644
--- a/source3/libsmb/clifile.c
+++ b/source3/libsmb/clifile.c
@@ -1692,13 +1692,9 @@ static BOOL cli_get_ea_list(struct cli_state *cli,
goto out;
}
- if (num_eas) {
- ea_list = TALLOC_ARRAY(ctx, struct ea_struct, num_eas);
- if (!ea_list) {
- goto out;
- }
- } else {
- ea_list = NULL;
+ ea_list = TALLOC_ARRAY(ctx, struct ea_struct, num_eas);
+ if (!ea_list) {
+ goto out;
}
ea_size = (size_t)IVAL(rdata,0);