[gtk+/wip/csoriano/pathbar-prototype: 123/124] gdkdisplay: fix warning
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/csoriano/pathbar-prototype: 123/124] gdkdisplay: fix warning
- Date: Wed, 11 May 2016 15:23:00 +0000 (UTC)
commit d2f1c47a63f8c79834ceb22f22639d1d11805c87
Author: Carlos Soriano <csoriano gnome org>
Date: Wed May 11 11:30:19 2016 +0200
gdkdisplay: fix warning
Of possibility of using it uninitialised.
gdk/gdkdisplay.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/gdkdisplay.c b/gdk/gdkdisplay.c
index 5e2fa87..7e656f6 100644
--- a/gdk/gdkdisplay.c
+++ b/gdk/gdkdisplay.c
@@ -2628,7 +2628,7 @@ gdk_display_get_monitor_at_point (GdkDisplay *display,
int x,
int y)
{
- GdkMonitor *nearest;
+ GdkMonitor *nearest = NULL;
int nearest_dist = G_MAXINT;
int n_monitors, i;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]