Version 0.1.11 from FTP
authorMark Spencer <markster@digium.com>
Wed, 23 Jan 2002 20:56:52 +0000 (20:56 +0000)
committerMark Spencer <markster@digium.com>
Wed, 23 Jan 2002 20:56:52 +0000 (20:56 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@409 65c4cc65-6c06-0410-ace0-fbb531ad65f3

image.c

diff --git a/image.c b/image.c
index 33f49de..f51f751 100755 (executable)
--- a/image.c
+++ b/image.c
@@ -68,6 +68,8 @@ void ast_image_unregister(struct ast_imager *img)
 
 int ast_supports_images(struct ast_channel *chan)
 {
+       if (!chan || !chan->pvt)
+               return 0;
        if (!chan->pvt->send_image)
                return 0;
        return 1;