Fix warning when compiling with -O3:
/home/jmayer/work/wireshark/git/epan/dissectors/packet-ipp.c: In function ‘dissect_ipp’: /home/jmayer/work/wireshark/git/epan/dissectors/packet-ipp.c:583:78: error: ‘name_val’ may be used uninitialized in this function [-Werror=maybe-uninitialized] if ((name_length > 5) && name_val && !strcmp(name_val+name_length-5, "-time")) { ^ /home/jmayer/work/wireshark/git/epan/dissectors/packet-ipp.c:557:11: note: ‘name_val’ was declared here char *name_val; ^ Change-Id: I5e49596010572b285e4ca8f210cdcf49d56bfc10 Reviewed-on: https://code.wireshark.org/review/3572 Reviewed-by: Jörg Mayer <jmayer@loplof.de>
This commit is contained in:
parent
ea8738306e
commit
633f1562ad
3
NEWS
3
NEWS
|
@ -1,3 +1,4 @@
|
|||
|
||||
Wireshark 1.99.0 Release Notes
|
||||
|
||||
This is an experimental release intended to test new features for the
|
||||
|
@ -192,7 +193,7 @@ Frequently Asked Questions
|
|||
A complete FAQ is available on the [22]Wireshark web site.
|
||||
__________________________________________________________________
|
||||
|
||||
Last updated 2014-08-04 18:58:48 EDT
|
||||
Last updated 2014-08-05 22:12:55 CEST
|
||||
|
||||
References
|
||||
|
||||
|
|
|
@ -554,7 +554,7 @@ add_integer_value(const gchar *tag_desc, proto_tree *tree, tvbuff_t *tvb,
|
|||
int offset, int name_length, int value_length, guint8 tag)
|
||||
{
|
||||
guint8 bool_val;
|
||||
char *name_val;
|
||||
char *name_val = NULL;
|
||||
|
||||
offset = add_value_head(tag_desc, tree, tvb, offset, name_length,
|
||||
value_length, &name_val);
|
||||
|
|
Loading…
Reference in New Issue