File libfm-1.2.3-Fix-uninitialized-data-in-drag-motion-callback.patch of Package libfm

From 3f6bfa6d5857a3f8603c41cc55fec5d224e2a631 Mon Sep 17 00:00:00 2001
From: Andriy Grytsenko <andrej@rep.kiev.ua>
Date: Sat, 9 May 2015 20:20:31 +0300
Subject: [PATCH] Fix uninitialized data in drag-motion callback of
 FmPlacesView.

---
 NEWS                     | 2 ++
 src/gtk/fm-places-view.c | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/NEWS b/NEWS
index 0c499ba..60c45ab 100644
--- a/NEWS
+++ b/NEWS
@@ -21,6 +21,8 @@
 * Fixed invalid desktop entry save if 'Cancel' was pressed in the file
     properties dialog window.
 
+* Fixed issues on dropping folders into Places for bookmarking them.
+
 
 Changes on 1.2.3 since 1.2.2:
 
diff --git a/src/gtk/fm-places-view.c b/src/gtk/fm-places-view.c
index 70b728b..b6be8a9 100644
--- a/src/gtk/fm-places-view.c
+++ b/src/gtk/fm-places-view.c
@@ -2,7 +2,7 @@
  *      fm-places-view.c
  *
  *      Copyright 2009 - 2012 Hong Jen Yee (PCMan) <pcman.tw@gmail.com>
- *      Copyright 2012-2013 Andriy Grytsenko (LStranger) <andrej@rep.kiev.ua>
+ *      Copyright 2012-2015 Andriy Grytsenko (LStranger) <andrej@rep.kiev.ua>
  *
  *      This program is free software; you can redistribute it and/or modify
  *      it under the terms of the GNU General Public License as published by
@@ -247,7 +247,7 @@ static gboolean on_drag_motion (GtkWidget *dest_widget,
     /* fm_drag_context_has_target_name(drag_context, "GTK_TREE_MODEL_ROW"); */
     GdkAtom target;
     GtkTreeViewDropPosition pos;
-    GtkTreePath* tp;
+    GtkTreePath* tp = NULL;
     gboolean ret = FALSE;
     GdkDragAction action = 0;
 
-- 
2.1.4

openSUSE Build Service is sponsored by