dissector: Don't re-initialize packet_types array
commitdd8ce9fc18f2ce5007883f0fc6885c41deafc1b7
authorTobias Klauser <tklauser@distanz.ch>
Tue, 9 Sep 2014 12:50:43 +0000 (9 14:50 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Tue, 9 Sep 2014 12:50:43 +0000 (9 14:50 +0200)
tree5efea6fc02aa6689566e0cab54c8d089467ce844
parente0a7ae85351de7ebc43af1fe5f04e650c6736201
dissector: Don't re-initialize packet_types array

Both sparse and clang warn about the initializers overriding previous
initialization of the packet_types array. Since every access of the
packet_types array checks the value for NULL (the default value, since the
array is static) and prints a "?" if it isNULL, we don't need the prior
initialization with "?".

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
dissector.h