bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/misc/entrance.git/commit/?id=6cb61aa50aeaad3b5ae217d2f4adf13b59508554

commit 6cb61aa50aeaad3b5ae217d2f4adf13b59508554
Author: Marcel Hollerbach <marcel.hollerb...@stzedn.de>
Date:   Wed Apr 9 12:37:38 2014 +0200

    Revert "entrance: append the user in the history if there was an update"
    
    This reverts commit fd8c7b75b5ab92b305f35ee8f77ae8a373a1b8e6.
---
 src/daemon/entrance_history.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/daemon/entrance_history.c b/src/daemon/entrance_history.c
index 12371fe..678af57 100644
--- a/src/daemon/entrance_history.c
+++ b/src/daemon/entrance_history.c
@@ -162,7 +162,7 @@ void
 entrance_history_user_update(const Entrance_Login *eu)
 {
    Eina_List *l;
-   Entrance_Login *el, *eln;
+   Entrance_Login *el;
 
    PT("Updating user info\n");
 
@@ -182,10 +182,7 @@ entrance_history_user_update(const Entrance_Login *eu)
              if (!strcmp(eu->login, el->login))
                {
                   PT("Append user in history\n");
-                  eln = calloc(1, sizeof(Entrance_Login));
-                  memcpy(eln, el, sizeof(Entrance_Login));
-                  _entrance_history_user_set(eln, eu);
-                  _entrance_history->history = 
eina_list_append(_entrance_history->history, eln);
+                  _entrance_history_user_set(el, eu);
                   break;
                }
           }

-- 


Reply via email to