r23347: Fix Coverity 363. Dead code elimination.
authorJeremy Allison <jra@samba.org>
Mon, 4 Jun 2007 23:31:34 +0000 (23:31 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:23:08 +0000 (12:23 -0500)
Jeremy.
(This used to be commit 4524ee2dbcd5c1c66085032de67c6d083f91cb8a)

source3/libsmb/clifile.c

index 61c4347b5bc886d5170b8724d10c437f801ed94f..64b3e652cf95ad25b394182ce7591718f7d1300e 100644 (file)
@@ -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);