From 30cbbefd6a29d4f21640e271fb1708fa07d69a88 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Thu, 10 Jan 2013 22:51:28 +0000 Subject: [PATCH] efl:ecore: fix possible segfault when ccalling ecore_x_selection_convert() SVN revision: 82594 --- src/lib/ecore_x/xlib/ecore_x_selection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ecore_x/xlib/ecore_x_selection.c b/src/lib/ecore_x/xlib/ecore_x_selection.c index 269ea342ed..8d38b60d3f 100644 --- a/src/lib/ecore_x/xlib/ecore_x_selection.c +++ b/src/lib/ecore_x/xlib/ecore_x_selection.c @@ -562,7 +562,7 @@ ecore_x_selection_convert(Ecore_X_Atom selection, free(tgt_str); if (r) { - *data_ret = data; + if (data_ret) *data_ret = data; return r; } else