Do not hash NULL
This commit is contained in:
parent
c5a6161994
commit
75e4fb7e8c
@ -686,7 +686,8 @@ moo_history_list_new (const char *user_id)
|
|||||||
|
|
||||||
list = g_object_new (MOO_TYPE_HISTORY_LIST,
|
list = g_object_new (MOO_TYPE_HISTORY_LIST,
|
||||||
"user-id", user_id, NULL);
|
"user-id", user_id, NULL);
|
||||||
add_named_list (user_id, list);
|
if (user_id)
|
||||||
|
add_named_list (user_id, list);
|
||||||
|
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user