nmeter: cosmetics
authorDenis Vlasenko <vda.linux@googlemail.com>
Sat, 28 Jun 2008 23:33:02 +0000 (23:33 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Sat, 28 Jun 2008 23:33:02 +0000 (23:33 -0000)
procps/nmeter.c

index 888b827eadeacfdc650c052aad10a65ae93b503d..86007eee000bdce28d4f1d52ee04f1b4e438b1ac 100644 (file)
@@ -281,7 +281,7 @@ static void collect_literal(s_stat *s ATTRIBUTE_UNUSED)
 
 static s_stat* init_literal(void)
 {
-       s_stat *s = xzalloc(sizeof(s_stat));
+       s_stat *s = xzalloc(sizeof(*s));
        s->collect = collect_literal;
        return (s_stat*)s;
 }