aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dave@treblig.org>2021-06-26 21:35:55 +0100
committerDr. David Alan Gilbert <dave@treblig.org>2021-06-26 21:35:55 +0100
commit2a60fc295ec0be215b4929918b07eaaf28076ac9 (patch)
tree848c28ca25239ed77f20464c72d8c0355c51d188
parentde3f487f1d67b286914026c102dff489d84a470a (diff)
downloadpurple-matrix-2a60fc295ec0be215b4929918b07eaaf28076ac9.tar.gz
Build failure workaround: _on_typing
We have a report of gcc not liking old_user_ids being unitialised; but as far as I can tell it doesn't matter when old_len is set to 0 because the loop won't happen. Set it to NULL and hope it placates gcc. Fixes: 108 Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
-rw-r--r--matrix-room.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/matrix-room.c b/matrix-room.c
index cd17ae7..040ab38 100644
--- a/matrix-room.c
+++ b/matrix-room.c
@@ -210,6 +210,7 @@ static void _on_typing(PurpleConversation *conv,
old_user_ids = matrix_json_object_get_array_member(old_state->content, "user_ids");
old_len = json_array_get_length(old_user_ids);
} else {
+ old_user_ids = NULL; /* Work around gcc 10.3.1 false uninit warn */
old_len = 0;
}