/pidgin/main: 82fdaf2769b5: Fix possible NULL dereference

Tomasz Wasilczyk twasilczyk at pidgin.im
Sat Apr 12 20:17:37 EDT 2014


Changeset: 82fdaf2769b558f20c6a9de586ce89d814479483
Author:	 Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date:	 2014-04-13 02:17 +0200
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/82fdaf2769b5

Description:

Fix possible NULL dereference

diffstat:

 pidgin/gtkconv.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff --git a/pidgin/gtkconv.c b/pidgin/gtkconv.c
--- a/pidgin/gtkconv.c
+++ b/pidgin/gtkconv.c
@@ -6646,7 +6646,7 @@ box_remote_image_cb(const GMatchInfo *in
 			end[0] = '\0';
 		else
 			alt = NULL;
-		if (alt[0] == '\0')
+		if (alt && alt[0] == '\0')
 			alt = NULL;
 	}
 



More information about the Commits mailing list