raster pushed a commit to branch master.
commit 530e75cf7453398c059f3d6bc487766b83591a6d
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date: Wed Sep 4 12:00:58 2013 +0900
fix segv in entrance history if session is null. - MERGE
---
src/daemon/entrance_history.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/daemon/entrance_history.c b/src/daemon/entrance_history.c
index 19aaf51..df65675 100644
--- a/src/daemon/entrance_history.c
+++ b/src/daemon/entrance_history.c
@@ -128,7 +128,8 @@ entrance_history_push(const char *login, const char
*session)
if (el = calloc(1, sizeof(Entrance_Login)))
{
el->login = eina_stringshare_add(login);
- el->session = eina_stringshare_add(session);
+ if (session) el->session = eina_stringshare_add(session);
+ else el->session = NULL;
_entrance_history->history =
eina_list_append(_entrance_history->history, el);
_history_update = EINA_TRUE;
--
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk