netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] libxtables: Dont initialize global xt_params
@ 2009-02-12 14:16 jamal
  2009-02-12 15:09 ` Thomas Jarosch
  2009-02-12 16:39 ` jamal
  0 siblings, 2 replies; 11+ messages in thread
From: jamal @ 2009-02-12 14:16 UTC (permalink / raw)
  To: Patrick McHardy; +Cc: Jan Engelhardt, Pablo Neira Ayuso, netfilter-devel

commit 7aad144ecaf7603b17af5372886fe491c3bc6a2f
Author: Jamal Hadi Salim <hadi@cyberus.ca>
Date:   Wed Feb 11 16:19:30 2009 -0500

    Dont initialize global xt_params
    To quote Jan Engelhardt <jengelh@medozas.de>
    "
    Do not initialize static members - this takes up extra space
    and adds no benefit. (zeroed anyway even in .bss)
    "
    
    Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>

diff --git a/xtables.c b/xtables.c
index 8e28d5e..114a393 100644
--- a/xtables.c
+++ b/xtables.c
@@ -48,7 +48,7 @@
 
 void basic_exit_err(enum xtables_exittype status, const char *msg, ...)
__attribute__((noreturn, format(printf,2,3)));
 
-struct xtables_globals *xt_params = NULL;
+struct xtables_globals *xt_params;
 
 void basic_exit_err(enum xtables_exittype status, const char *msg, ...)
 {



^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-02-17 14:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-12 14:16 [PATCH] libxtables: Dont initialize global xt_params jamal
2009-02-12 15:09 ` Thomas Jarosch
2009-02-12 15:14   ` Jan Engelhardt
2009-02-12 15:41     ` Thomas Jarosch
2009-02-13 13:49       ` jamal
2009-02-13 18:11         ` Thomas Jarosch
2009-02-16  4:51       ` Philip Craig
2009-02-16 10:38         ` Patrick McHardy
2009-02-17 14:46           ` Thomas Jarosch
2009-02-17 14:54             ` Patrick McHardy
2009-02-12 16:39 ` jamal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).