]> diplodocus.org Git - nmh/commitdiff
Removed unnecessary memset on fmt_mnull: it gets initialized to
authorDavid Levine <levinedl@acm.org>
Sat, 21 May 2016 12:06:36 +0000 (08:06 -0400)
committerDavid Levine <david.levine@gonift.com>
Sat, 21 May 2016 13:17:51 +0000 (09:17 -0400)
all 0's.

(cherry picked from commit 56c4ac49d7b8ad674c0a66e9999186bcb98bd048)

sbr/fmt_compile.c

index 50722a7..fbb1274 100644 (file)
@@ -399,8 +399,6 @@ fmt_compile(char *fstring, struct format **fmt, int reset_comptable)
        comptable_initialized = 1;
     }
 
-    memset((char *) &fmt_mnull, 0, sizeof(fmt_mnull));
-
     /* it takes at least 4 char to generate one format so we
      * allocate a worst-case format array using 1/4 the length
      * of the format string.  We actually need twice this much