aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2018-04-28 12:10:00 -0700
committerGuy Harris <guy@alum.mit.edu>2018-04-28 19:10:47 +0000
commit1eb04d7ecb76c79cf681798b51aaa51aad938325 (patch)
treeaae77c7ba16ecacd22c40b24e0c0e0a0a95313e8 /wiretap
parente3541af62e5432fe5a1f269ec2f35ae07235f2ad (diff)
Pick the *first* usable file type as the default, not the *last* one.
In wtap_get_savable_file_types_subtypes(), in the search for a default file type to use, stop as soon as we've found a usable file type, don't keep searching. Bug: 14601 Change-Id: Iff4ffe14f5ad07271c49a761e0856059353c1634 Reviewed-on: https://code.wireshark.org/review/27193 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/file_access.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/wiretap/file_access.c b/wiretap/file_access.c
index 2fd0c2e240..2d7d941df1 100644
--- a/wiretap/file_access.c
+++ b/wiretap/file_access.c
@@ -1893,6 +1893,7 @@ wtap_get_savable_file_types_subtypes(int file_type_subtype,
required_comment_types)) {
/* OK, got it. */
default_file_type_subtype = ft;
+ break;
}
}
}