file_access: Use g_slist_prepend.
Change-Id: I6ed0f384e130ec9181e43b6262bb21d91f944dfa Reviewed-on: https://code.wireshark.org/review/17968 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
c3b25e8111
commit
4aca4dc319
|
@ -98,7 +98,7 @@ add_extensions(GSList *extensions, const gchar *extension,
|
|||
/*
|
||||
* Add the specified extension.
|
||||
*/
|
||||
extensions = g_slist_append(extensions, g_strdup(extension));
|
||||
extensions = g_slist_prepend(extensions, g_strdup(extension));
|
||||
|
||||
/*
|
||||
* Now add the extensions for compressed-file versions of
|
||||
|
@ -107,7 +107,7 @@ add_extensions(GSList *extensions, const gchar *extension,
|
|||
for (compressed_file_extensionp = compressed_file_extensions;
|
||||
*compressed_file_extensionp != NULL;
|
||||
compressed_file_extensionp++) {
|
||||
extensions = g_slist_append(extensions,
|
||||
extensions = g_slist_prepend(extensions,
|
||||
g_strdup_printf("%s.%s", extension,
|
||||
*compressed_file_extensionp));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue