Revert "entrance: append the user in the history if there was an update"

This reverts commit fd8c7b75b5.
devs/bu5hm4n/develop
Marcel Hollerbach 9 years ago
parent fd8c7b75b5
commit 6cb61aa50a
  1. 7
      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;
}
}

Loading…
Cancel
Save