[nautilus] bookmark-list: null-initialize error pointer
- From: Ernestas Kulik <ernestask src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] bookmark-list: null-initialize error pointer
- Date: Sat, 13 Aug 2016 08:27:06 +0000 (UTC)
commit d316950258ae43908d0251dcaeb0e49d33b7eec3
Author: Ernestas Kulik <ernestask src gnome org>
Date: Sat Aug 13 09:51:11 2016 +0300
bookmark-list: null-initialize error pointer
A GError pointer was not being null-initialized, which can result in
crashes. This commit fixes that.
https://bugzilla.gnome.org/show_bug.cgi?id=768175
src/nautilus-bookmark-list.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-bookmark-list.c b/src/nautilus-bookmark-list.c
index 2eeaec1..c849c01 100644
--- a/src/nautilus-bookmark-list.c
+++ b/src/nautilus-bookmark-list.c
@@ -414,7 +414,7 @@ save_callback (GObject *source_object,
gpointer user_data)
{
NautilusBookmarkList *self = NAUTILUS_BOOKMARK_LIST (source_object);
- GError *error;
+ GError *error = NULL;
gboolean success;
GFile *file;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]