mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-06 20:55:13 +02:00
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]
This commit is contained in:
@@ -103,7 +103,7 @@ static bool
|
|||||||
xt_psd_match(const struct sk_buff *pskb, struct xt_action_param *match)
|
xt_psd_match(const struct sk_buff *pskb, struct xt_action_param *match)
|
||||||
{
|
{
|
||||||
const struct iphdr *iph;
|
const struct iphdr *iph;
|
||||||
const struct tcphdr *tcph;
|
const struct tcphdr *tcph = NULL;
|
||||||
const struct udphdr *udph;
|
const struct udphdr *udph;
|
||||||
union {
|
union {
|
||||||
struct tcphdr tcph;
|
struct tcphdr tcph;
|
||||||
|
Reference in New Issue
Block a user