]> granicus.if.org Git - sudo/commitdiff
Kill dead store found by clang-analyzer.
authorTodd C. Miller <Todd.Miller@sudo.ws>
Sun, 4 Mar 2018 18:59:45 +0000 (11:59 -0700)
committerTodd C. Miller <Todd.Miller@sudo.ws>
Sun, 4 Mar 2018 18:59:45 +0000 (11:59 -0700)
plugins/sudoers/fmtsudoers.c

index 9ae812e440b79f42573c0a39af0da9a41cc3159c..3116996b95816b41026576444e47d9c17d48af6a 100644 (file)
@@ -378,7 +378,7 @@ sudoers_format_default_line(struct sudo_lbuf *lbuf, struct defaults *d,
 
     if (next != NULL) {
        /* Merge Defaults with the same binding, there may be multiple. */
-       struct defaults *n = *next;
+       struct defaults *n;
        while ((n = TAILQ_NEXT(d, entries)) && d->binding == n->binding) {
            sudo_lbuf_append(lbuf, ", ");
            sudoers_format_default(lbuf, n);