diff options
author | Bill Meier <wmeier@newsguy.com> | 2013-07-01 14:32:08 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2013-07-01 14:32:08 +0000 |
commit | 43442af8e3d31ed5561e0d1120f6350bc6261c51 (patch) | |
tree | c9d2eb023accf7f26a46ed931124e2a1d21ae804 /ui/gtk/about_dlg.c | |
parent | ee52f06db9de9cc4533ca279caa2eb1f67fff93e (diff) | |
download | wireshark-43442af8e3d31ed5561e0d1120f6350bc6261c51.tar.gz |
Define certain 'const char *...' arrays as static.
(That is: Don't create the array on the stack each time
the function is called).
Reduces code memory usage and execution time.
(See SVN #50271)
svn path=/trunk/; revision=50295
Diffstat (limited to 'ui/gtk/about_dlg.c')
-rw-r--r-- | ui/gtk/about_dlg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk/about_dlg.c b/ui/gtk/about_dlg.c index 3a0dbdfdc3..d22837946d 100644 --- a/ui/gtk/about_dlg.c +++ b/ui/gtk/about_dlg.c @@ -386,7 +386,7 @@ about_folders_page_new(void) GtkWidget *table; const char *constpath; char *path; - const gchar *titles[] = { "Name", "Folder", "Typical Files"}; + static const gchar *titles[] = { "Name", "Folder", "Typical Files"}; GtkWidget *scrolledwindow; #if defined (HAVE_LIBSMI) || defined (HAVE_GEOIP) gint i; |