]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: acl: remove unused assignment
authorIlya Shipitsin <chipitsine@gmail.com>
Sat, 16 May 2020 17:42:12 +0000 (22:42 +0500)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 18 May 2020 07:21:27 +0000 (09:21 +0200)
Coverity found unused variable assignment

    CID 1299671 (#1 of 1): Unused value (UNUSED_VALUE)assigned_pointer:
    Assigning value from args[arg + 1] to word here, but that stored
    value is overwritten before it can be used.
 958                        word = args[arg + 1];
 959                        arg = arg_end;

src/acl.c

index f3d7af789ecc4f9c28bfcf39ff8eb4e666fb7052..fa8ae923803bb858fab58ad67b046a40c66f338a 100644 (file)
--- a/src/acl.c
+++ b/src/acl.c
@@ -955,7 +955,6 @@ struct acl_cond *parse_acl_cond(const char **args, struct list *known_acl,
                                /* note that parse_acl() must have filled <err> here */
                                goto out_free_suite;
                        }
-                       word = args[arg + 1];
                        arg = arg_end;
                }
                else {