Do not hash NULL

master
Yevgen Muntyan 2007-11-03 14:12:35 -05:00
parent c5a6161994
commit 75e4fb7e8c
1 changed files with 2 additions and 1 deletions

View File

@ -686,7 +686,8 @@ moo_history_list_new (const char *user_id)
list = g_object_new (MOO_TYPE_HISTORY_LIST,
"user-id", user_id, NULL);
add_named_list (user_id, list);
if (user_id)
add_named_list (user_id, list);
return list;
}