[gnome-panel] menu: initialize contents variable
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] menu: initialize contents variable
- Date: Sat, 20 Mar 2021 22:29:14 +0000 (UTC)
commit 679a4015693f6ca6ac823c736e0afb422914fe93
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Mar 21 00:28:20 2021 +0200
menu: initialize contents variable
Coverity CID: #1502708
modules/menu/gp-bookmarks.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/modules/menu/gp-bookmarks.c b/modules/menu/gp-bookmarks.c
index c81664982..50aaae56c 100644
--- a/modules/menu/gp-bookmarks.c
+++ b/modules/menu/gp-bookmarks.c
@@ -119,6 +119,8 @@ read_bookmarks (GpBookmarks *bookmarks,
bookmarks->bookmarks = NULL;
}
+ contents = NULL;
+
if (!g_file_load_contents (file, NULL, &contents, NULL, NULL, NULL))
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]