summaryrefslogtreecommitdiff
path: root/ui/win32
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-01-24 09:29:02 +0000
committerGuy Harris <guy@alum.mit.edu>2012-01-24 09:29:02 +0000
commita127e69037b84e5ae2e1256b0544ac977041b14e (patch)
tree86481bba7ea67cf24300bde368ce0874c2824b49 /ui/win32
parentc3d2108e32a19f5a551eb4ea9ff0e775487d5d49 (diff)
downloadwireshark-a127e69037b84e5ae2e1256b0544ac977041b14e.tar.gz
build_file_save_type_list() isn't called if there are no savable file
types. svn path=/trunk/; revision=40690
Diffstat (limited to 'ui/win32')
-rw-r--r--ui/win32/file_dlg_win32.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/ui/win32/file_dlg_win32.c b/ui/win32/file_dlg_win32.c
index 9daad89a31..67bb7b9d92 100644
--- a/ui/win32/file_dlg_win32.c
+++ b/ui/win32/file_dlg_win32.c
@@ -1489,14 +1489,9 @@ build_file_save_type_list(GArray *savable_file_types) {
guint16 zero = 0;
/* Get only the file types as which we can save this file. */
- if (savable_file_types != NULL) {
- /* OK, we have at least one file type we can save this file as.
- (If we didn't, we shouldn't have gotten here in the first
- place.) Add them all to the filter list. */
- for (i = 0; i < savable_file_types->len; i++) {
- ft = g_array_index(savable_file_types, int, i);
- append_file_type(sa, ft);
- }
+ for (i = 0; i < savable_file_types->len; i++) {
+ ft = g_array_index(savable_file_types, int, i);
+ append_file_type(sa, ft);
}
/* terminate the array */