diff options
author | Ray Strode <rstrode@redhat.com> | 2011-07-19 15:18:11 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2011-07-19 15:18:11 -0400 |
commit | a4e478b9fef287698a3369d4b0d779c8ab949ff3 (patch) | |
tree | 9210b020d4ea8108e8d4d5ecb9b44dd472e32cd9 | |
parent | 281ac4126636a7a701b95c465ab9de7762e17fdf (diff) |
daemon: fix up some problems in last commit
I introduced some small problems in commit
281ac4126636a7a701b95c465ab9de7762e17fdf
when updating it to reflect my proposed
changes in bug 39295.
This commit corrects those issues.
-rw-r--r-- | src/daemon.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/daemon.c b/src/daemon.c index 5f8e778..1bc6bd0 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -263,10 +263,9 @@ reload_wtmp_history (Daemon *daemon) if (!g_hash_table_lookup_extended (login_frequency_hash, wtmp_entry->ut_user, &key, &value)) { - value = GUINT_TO_POINTER (0); g_hash_table_insert (login_frequency_hash, g_strdup (wtmp_entry->ut_user), - GUINT_TO_POINTER (0)); + GUINT_TO_POINTER (1)); } else { guint frequency; |