[totem-pl-parser] plparse: Check return from load_http_itunes
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem-pl-parser] plparse: Check return from load_http_itunes
- Date: Fri, 5 Jun 2015 06:58:11 +0000 (UTC)
commit 9ab937f164da9f148855f6c59b079f5f9a9b5e45
Author: Andrew Cook <ariscop gmail com>
Date: Fri Jun 5 10:08:10 2015 +1000
plparse: Check return from load_http_itunes
https://bugzilla.gnome.org/show_bug.cgi?id=750428
plparse/totem-pl-parser-podcast.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plparse/totem-pl-parser-podcast.c b/plparse/totem-pl-parser-podcast.c
index 7e1b57f..5452396 100644
--- a/plparse/totem-pl-parser-podcast.c
+++ b/plparse/totem-pl-parser-podcast.c
@@ -770,6 +770,8 @@ totem_pl_parser_add_itms (TotemPlParser *parser,
/* Load the file using iTunes user-agent */
content = totem_pl_parser_load_http_itunes (itms_uri, totem_pl_parser_is_debugging_enabled (parser));
+ if (!content)
+ return TOTEM_PL_PARSER_RESULT_ERROR;
/* And look in the file for the feedURL */
feed_file = totem_pl_parser_get_feed_uri ((char *) content->data, content->len,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]