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/flow_graph.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/flow_graph.c')
-rw-r--r-- | ui/gtk/flow_graph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk/flow_graph.c b/ui/gtk/flow_graph.c index c5d33bc0ae..0c0337444f 100644 --- a/ui/gtk/flow_graph.c +++ b/ui/gtk/flow_graph.c @@ -313,7 +313,7 @@ flow_graph_tcp_add_to_graph(packet_info *pinfo, const struct tcpheader *tcph) { graph_analysis_item_t *gai; /* copied from packet-tcp */ - const gchar *fstr[] = {"FIN", "SYN", "RST", "PSH", "ACK", "URG", "ECN", "CWR" }; + static const gchar *fstr[] = {"FIN", "SYN", "RST", "PSH", "ACK", "URG", "ECN", "CWR" }; guint i, bpos; gboolean flags_found = FALSE; gchar flags[64]; |