[gnome-notes] memo-note: Initialize error with NULL
- From: Isaque Galdino de Araujo <igaldino src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-notes] memo-note: Initialize error with NULL
- Date: Tue, 30 Mar 2021 22:55:00 +0000 (UTC)
commit 661cd04e0ff48e697a5590477ae9bfd2bd3fcb88
Author: Mohammed Sadiq <sadiq sadiqpk org>
Date: Tue Mar 30 14:11:25 2021 +0530
memo-note: Initialize error with NULL
Otherwise if error is not set, it will be pointing to some
invalid memory location resulting in a crash when automatically
freed.
src/libbiji/provider/biji-memo-note.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libbiji/provider/biji-memo-note.c b/src/libbiji/provider/biji-memo-note.c
index 8e92c78..47d6c8e 100644
--- a/src/libbiji/provider/biji-memo-note.c
+++ b/src/libbiji/provider/biji-memo-note.c
@@ -170,7 +170,7 @@ memo_note_save (BijiNoteObj *note)
BijiMemoNote *self = BIJI_MEMO_NOTE (note);
ICalComponent *icalcomp;
gboolean result;
- g_autoptr(GError) error;
+ g_autoptr(GError) error = NULL;
ECalComponent *clone;
clone = e_cal_component_clone (self->ecal);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]