From 01d864f4fc69c7cb46017328aac2dd1b62436dd8 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 11 Aug 2011 15:50:08 +0200 Subject: [PATCH] xt_psd: resolve compiler warning xt_psd.c: In function "xt_psd_match": xt_psd.c:253:27: warning: "tcph" may be used uninitialized in this function [-Wuninitialized] --- extensions/xt_psd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/xt_psd.c b/extensions/xt_psd.c index 04d1453..46b2831 100644 --- a/extensions/xt_psd.c +++ b/extensions/xt_psd.c @@ -103,7 +103,7 @@ static bool xt_psd_match(const struct sk_buff *pskb, struct xt_action_param *match) { const struct iphdr *iph; - const struct tcphdr *tcph; + const struct tcphdr *tcph = NULL; const struct udphdr *udph; union { struct tcphdr tcph;