[gnome-panel] status-notifier: initialize pointer
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] status-notifier: initialize pointer
- Date: Sat, 7 Mar 2020 21:13:49 +0000 (UTC)
commit fc8455d9e9db24cf8d87a1ab27d05a5a0187cc3a
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Mar 7 23:07:02 2020 +0200
status-notifier: initialize pointer
This is attempt to silence coverity defect about uninitialized
pointer read - CID 1445703.
SnIconPixmap always have valid surface.
modules/status-notifier/sn-item-v0.c | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/modules/status-notifier/sn-item-v0.c b/modules/status-notifier/sn-item-v0.c
index 7aff8a1e1..63ab85ab5 100644
--- a/modules/status-notifier/sn-item-v0.c
+++ b/modules/status-notifier/sn-item-v0.c
@@ -169,6 +169,7 @@ get_surface (SnItemV0 *v0,
pixmaps = get_pixmaps_sorted (v0, orientation, size);
surface = NULL;
+ best = NULL;
for (l = pixmaps; l != NULL; l = l->next)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]