Explicitly say "no extensions, no entry in this table".
authorGuy Harris <guy@alum.mit.edu>
Tue, 20 Nov 2018 07:59:47 +0000 (23:59 -0800)
committerGuy Harris <guy@alum.mit.edu>
Tue, 20 Nov 2018 08:00:34 +0000 (08:00 +0000)
Change-Id: Idd4d5143a75b7f2282460408b2f61d0d8aa3e66a
Reviewed-on: https://code.wireshark.org/review/30736
Reviewed-by: Guy Harris <guy@alum.mit.edu>
wiretap/file_access.c

index 26ceff232539158f3c09a6e9e20f69ccd73c5128..3de12f070b07aafa63c1cd53efe2846b96a734bb 100644 (file)
@@ -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" },