Wireshark-commits: [Wireshark-commits] master-2.2 1241e31: Don't rely on "xxx *yyy[N] = {}; " compi
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=1241e31b3091641c75e78a27d37bc0438fabfe8a
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master-2.2
Repository: wireshark
Commits:
1241e31 by Guy Harris (guy@xxxxxxxxxxxx):
Don't rely on "xxx *yyy[N] = {};" compiling.
At least as I read C90 "6.5.7 Initialization" and C99 "6.7.8
Initialization", there must be at least one "initializer" in an
"initializer-list", so nothing requires that the compiler accept, for
example
static const ws_mem_usage_t *memory_components[MAX_COMPONENTS] = {
};
Bug: 14556
Change-Id: Ief1dbfee504ad5ef1d984390dc2da18deba7fb90
Reviewed-on: https://code.wireshark.org/review/26616
Petri-Dish: Guy Harris <guy@xxxxxxxxxxxx>
Reviewed-by: Guy Harris <guy@xxxxxxxxxxxx>
(cherry picked from commit bff1f7f70e354d5e5b5f47bed87b996c538a3633)
Reviewed-on: https://code.wireshark.org/review/26618
Actions performed:
from f801943 Use $(INSTALL_DATA) rather than "install -m 644".
adds 1241e31 Don't rely on "xxx *yyy[N] = {};" compiling.
Summary of changes:
epan/app_mem_usage.c | 47 +++++++++++++++++++----------------------------
1 file changed, 19 insertions(+), 28 deletions(-)