diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2007-02-10 06:13:23 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2007-02-10 06:13:23 +0000 |
commit | cd16c16ac85d0bfa460f51178da0334d8f34a836 (patch) | |
tree | 6c4008b70e6b20a370a944cb562b16efe1c878f5 /net/wireshark | |
parent | 60b3a84279e0657b047e05ed4f622cf401e2376b (diff) |
Notes
Diffstat (limited to 'net/wireshark')
-rw-r--r-- | net/wireshark/files/patch-tools_lemon_lemon.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/net/wireshark/files/patch-tools_lemon_lemon.c b/net/wireshark/files/patch-tools_lemon_lemon.c new file mode 100644 index 000000000000..3fbd409974c8 --- /dev/null +++ b/net/wireshark/files/patch-tools_lemon_lemon.c @@ -0,0 +1,10 @@ +--- tools/lemon/lemon.c.orig Sat Feb 10 01:09:11 2007 ++++ tools/lemon/lemon.c Sat Feb 10 01:09:33 2007 +@@ -2146,6 +2146,7 @@ to follow the previous rule."); + struct rule *rp; + rp = (struct rule *)malloc( sizeof(struct rule) + + sizeof(struct symbol*)*psp->nrhs + sizeof(char*)*psp->nrhs ); ++ memset(rp, 0, sizeof(struct rule)); + if( rp==0 ){ + ErrorMsg(psp->filename,psp->tokenlineno, + "Can't allocate enough memory for this rule."); |