aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/file_access.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-11-19 23:59:47 -0800
committerGuy Harris <guy@alum.mit.edu>2018-11-20 08:00:34 +0000
commit0f30473661842627551cd27c25cc4c253884aacf (patch)
treebb8fdfdf0a307a6e8aed9339e78abc4f8816056a /wiretap/file_access.c
parent5d740afff10c24503dd602a09a4d0d3fa37c2709 (diff)
Explicitly say "no extensions, no entry in this table".
Change-Id: Idd4d5143a75b7f2282460408b2f61d0d8aa3e66a Reviewed-on: https://code.wireshark.org/review/30736 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/file_access.c')
-rw-r--r--wiretap/file_access.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/wiretap/file_access.c b/wiretap/file_access.c
index 26ceff2325..3de12f070b 100644
--- a/wiretap/file_access.c
+++ b/wiretap/file_access.c
@@ -111,6 +111,11 @@ add_extensions(GSList *extensions, const gchar *extension,
* for which to filter. Note that the first field can list more than
* one type of file, because, for example, ".cap" is a popular
* extension used by a number of capture file types.
+ *
+ * File types that *don't* have a file extension used for them should
+ * *not* be placed here; if there's nothing to put in the last field
+ * of the structure, don't put an entry here, not even one with an
+ * empty string for the extensions list.
*/
static const struct file_extension_info file_type_extensions_base[] = {
{ "Wireshark/tcpdump/... - pcap", TRUE, "pcap;cap;dmp" },