From 54fb96a58c9f580342d1c66f5039ba9b1bdbb559 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Mon, 24 May 2010 17:26:38 +0000 Subject: LinGui: fix crash when processing appcast If the network read request fails to return any data, I referenced a NULL pointer. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3321 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- gtk/src/callbacks.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gtk/src') diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index 682b90cf6..0b4cd5b94 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -4730,7 +4730,10 @@ ghb_net_recv_cb(GIOChannel *ioc, GIOCondition cond, gpointer data) } if (status == G_IO_STATUS_EOF) { - ud->appcast[ud->appcast_len] = 0; + if ( ud->appcast != NULL ) + { + ud->appcast[ud->appcast_len] = 0; + } ghb_net_close(ioc); process_appcast(ud); return FALSE; -- cgit v1.2.3