diff options
author | Ted Gould <ted@gould.cx> | 2010-03-25 10:25:13 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-03-25 10:25:13 -0500 |
commit | 3fba03247a657a3d088920511e3621572bdae4e8 (patch) | |
tree | 9318b6d2adc589c8389a1cbee63070af71fa9bc1 /src | |
parent | 713c7d537e8b55015bad33175f4dcb90ae4ed08f (diff) | |
download | ayatana-indicator-messages-3fba03247a657a3d088920511e3621572bdae4e8.tar.gz ayatana-indicator-messages-3fba03247a657a3d088920511e3621572bdae4e8.tar.bz2 ayatana-indicator-messages-3fba03247a657a3d088920511e3621572bdae4e8.zip |
Fail if we have init called more than once. Merge comment.
Diffstat (limited to 'src')
-rw-r--r-- | src/seen-db.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/seen-db.c b/src/seen-db.c index 0d08801..57765cc 100644 --- a/src/seen-db.c +++ b/src/seen-db.c @@ -34,9 +34,7 @@ guint write_process = 0; void seen_db_init(void) { - if (seendb != NULL) { - return; - } + g_return_if_fail(seendb == NULL); seendb = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL); |