Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/majn/tgl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV V <vvaltman@aurum>2015-12-02 19:47:39 +0300
committerV V <vvaltman@aurum>2015-12-02 19:47:39 +0300
commit0595b9ddd64807b6f11b1737e964c7767c39812e (patch)
tree57d16134b959cc167b0a8e17e9cfd7515751971f /updates.c
parent43452b40c2158163feb8eeadd39466a45a3e78a6 (diff)
allow gt,lt,amp tags. Fixed crash if run under bot
Diffstat (limited to 'updates.c')
-rw-r--r--updates.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/updates.c b/updates.c
index 22aef31..e97fe70 100644
--- a/updates.c
+++ b/updates.c
@@ -160,6 +160,9 @@ void tglu_work_update (struct tgl_state *TLS, int check_only, struct tl_ds_updat
channel_id = DS_LVAL (DS_U->channel_id);
} else {
assert (DS_U->message);
+ if (!DS_U->message->to_id) {
+ return;
+ }
assert (DS_U->message->to_id);
assert (DS_U->message->to_id->magic == CODE_peer_channel);
channel_id = DS_LVAL (DS_U->message->to_id->channel_id);