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:
AndersBroman 2016-09-28 14:38:41 +02:00 committed by Anders Broman
parent c3b25e8111
commit 4aca4dc319
1 changed files with 2 additions and 2 deletions

View File

@ -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));
}