diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-01-23 13:29:52 -0800 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-01-23 22:27:14 +0000 |
commit | 7ed097c06abfb5534d65c19f2abe4f41cb059a0b (patch) | |
tree | 0c7adc9decc7dc84f2b36c1d707567193c69e073 /tfshark.c | |
parent | b714da2958e6be09a7ba3d9cd2aa2c2695634cb7 (diff) |
Fix an uninitialized variable warning.
Change-Id: I3a5c211db767e1980a8c1f2fd706139c0bf6f943
Reviewed-on: https://code.wireshark.org/review/6764
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'tfshark.c')
-rw-r--r-- | tfshark.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2649,9 +2649,9 @@ cf_open_error_message(int err, gchar *err_info _U_, gboolean for_writing, const char *errmsg; /* static char errmsg_errno[1024+1]; */ +#if 0 if (err < 0) { /* Wiretap error. */ -#if 0 switch (err) { case FTAP_ERR_NOT_REGULAR_FILE: @@ -2760,8 +2760,8 @@ cf_open_error_message(int err, gchar *err_info _U_, gboolean for_writing, errmsg = errmsg_errno; break; } -#endif } else +#endif errmsg = file_open_error_message(err, for_writing); return errmsg; } |