diff options
Diffstat (limited to 'src/xmpp')
-rw-r--r-- | src/xmpp/avatar.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xmpp/avatar.c b/src/xmpp/avatar.c index 1bbda806..6adcaa24 100644 --- a/src/xmpp/avatar.c +++ b/src/xmpp/avatar.c @@ -224,6 +224,10 @@ _avatar_request_item_result_handler(xmpp_stanza_t* const stanza, void* const use } char* buf = xmpp_stanza_get_text(st_data); + if (!buf) { + return 1; + } + gsize size; gchar* de = (gchar*)g_base64_decode(buf, &size); free(buf); |