[recipes] Fix a crash
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes] Fix a crash
- Date: Thu, 16 Feb 2017 23:47:55 +0000 (UTC)
commit 53e8691c9f73d53074b6491385325fd2ae699e2e
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Feb 16 18:46:59 2017 -0500
Fix a crash
format_date_time_difference needs to always return a newly
allocated string.
src/gr-utils.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gr-utils.c b/src/gr-utils.c
index 30038bb..ef65bd4 100644
--- a/src/gr-utils.c
+++ b/src/gr-utils.c
@@ -449,7 +449,7 @@ format_date_time_difference (GDateTime *end,
}
}
- return _("some time ago");
+ return g_strdup (_("some time ago"));
}
gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]