Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal/gtk capture_info_dlg.c

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxxxxxxx>
Date: Mon, 17 Nov 2003 14:00:37 -0600 (CST)
guy         2003/11/17 14:00:37 CST

  Modified files:
    gtk                  capture_info_dlg.c 
  Log:
  Not all compilers allow array/structure/union members of automatic
  variables to be initialized to non-constant values (C89 says that "All
  the expressions in an initializer for an object that has static storage
  duration or in an initializer list for an object that has aggregate or
  union type shall be constant expressions"; presumably the intent of the
  former was to avoid run-time initialization and of the latter was to let
  the initialization be done by copying from a compile-time-created blob
  of memory), so we have to initialize "info->counts" by hand.
  
  Revision  Changes    Path
  1.3       +26 -20    ethereal/gtk/capture_info_dlg.c