fixed worthless memset

Wed, 12 Jun 2013 14:50:27 +0200

author
Mike Becker <universe@uap-core.de>
date
Wed, 12 Jun 2013 14:50:27 +0200
changeset 6
d10f7570add4
parent 5
412f1896874b
child 7
02cf8ac736e6
child 11
c59fe73459fd

fixed worthless memset

src/c2html.c file | annotate | diff | comparison | revisions
--- a/src/c2html.c	Wed Jun 12 14:48:50 2013 +0200
+++ b/src/c2html.c	Wed Jun 12 14:50:27 2013 +0200
@@ -180,9 +180,9 @@
           memcpy(&(dest[dp]), "</span>", 7);
           dp += 7;
         }
+        memset(word, 0, WORDBUF_SIZE);
+        wp = 0;
       }
-      memset(word, 0, WORDBUF_SIZE);
-      wp = 0;
       dp = writeescapedchar(dest, dp, c);
     } else {
       /* read word */

mercurial