]> granicus.if.org Git - sudo/commitdiff
Remove dead store; found by cppcheck
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 13 Jan 2014 16:52:41 +0000 (09:52 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 13 Jan 2014 16:52:41 +0000 (09:52 -0700)
plugins/sudoers/logwrap.c

index 4adfc94b9a0d645dfb3b268fd3672469f70bf47a..16cdd9f982310d72166a07cd31b198ab8882d34a 100644 (file)
@@ -46,7 +46,6 @@ writeln_wrap(FILE *fp, char *line, size_t len, size_t maxlen)
     /*
      * Print out line with word wrap around maxlen characters.
      */
-    beg = line;
     while (len > maxlen) {
        end = beg + maxlen;
        while (end != beg && *end != ' ')