diff options
author | jstebbins <[email protected]> | 2010-05-24 17:26:38 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-05-24 17:26:38 +0000 |
commit | 54fb96a58c9f580342d1c66f5039ba9b1bdbb559 (patch) | |
tree | 193734f17557422e2659339c85ae9ec8e80cb2d8 /gtk/src | |
parent | e2c3279cb7448b820cd2077240666af08cae8bba (diff) |
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
Diffstat (limited to 'gtk/src')
-rw-r--r-- | gtk/src/callbacks.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |