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:
authorvvaltman <vvaltman@neon>2015-05-07 12:05:19 +0300
committervvaltman <vvaltman@neon>2015-05-07 12:05:19 +0300
commit16830c9872745a73b77767db477ecf1f5463bf8f (patch)
tree746e5fe7a4397792e1c3972eebacfc75b64469a8 /binlog.c
parenta4588778f998d0f27fb7e342a84b2b4ab56274dc (diff)
fixed SIGSEGV on deleting empty photo
Diffstat (limited to 'binlog.c')
-rw-r--r--binlog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binlog.c b/binlog.c
index 35c29f0..5c74038 100644
--- a/binlog.c
+++ b/binlog.c
@@ -500,7 +500,7 @@ static int fetch_comb_binlog_chat_new (struct tgl_state *TLS, struct tl_ds_binlo
}
if (DS_U->photo) {
- if (C->flags & TGLPF_HAS_PHOTO) {
+ if (C->photo) {
tgls_free_photo (TLS, C->photo);
}
C->photo = tglf_fetch_alloc_photo_new (TLS, DS_U->photo);