diff options
Diffstat (limited to 'matrix-statetable.c')
-rw-r--r-- | matrix-statetable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/matrix-statetable.c b/matrix-statetable.c index 3d7edbe..8021645 100644 --- a/matrix-statetable.c +++ b/matrix-statetable.c @@ -129,7 +129,7 @@ gchar *matrix_statetable_get_room_alias(MatrixRoomStateEventTable *state_table) if(event != NULL) { tmpname = matrix_json_object_get_string_member( event->content, "name"); - if(tmpname != NULL) { + if(tmpname != NULL && tmpname[0] != '\0') { return g_strdup(tmpname); } } |