[gimp] app: file_utils_file_get_ext() now returns an allocated string
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: file_utils_file_get_ext() now returns an allocated string
- Date: Tue, 8 Jul 2014 08:10:14 +0000 (UTC)
commit ba0057175645646a463bfad9931c9f9c7492cd9a
Author: Michael Natterer <mitch gimp org>
Date: Tue Jul 8 09:10:29 2014 +0200
app: file_utils_file_get_ext() now returns an allocated string
app/file/file-procedure.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/app/file/file-procedure.c b/app/file/file-procedure.c
index 6d0dba9..850dcbb 100644
--- a/app/file/file-procedure.c
+++ b/app/file/file-procedure.c
@@ -326,9 +326,7 @@ file_proc_find_by_extension (GSList *procs,
gboolean skip_magic,
gboolean uri_procs_only)
{
- const gchar *ext;
-
- ext = file_utils_file_get_ext (file);
+ gchar *ext = file_utils_file_get_ext (file);
if (ext)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]