[totem-pl-parser] pls: Fix getting past the last line in PLS files
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem-pl-parser] pls: Fix getting past the last line in PLS files
- Date: Wed, 2 Mar 2011 14:59:00 +0000 (UTC)
commit 3e598e4e6a20905dccb97f70a4c62e41ef1a61f4
Author: Philip Van Hoof <pvanhoof gnome org>
Date: Wed Mar 2 14:57:32 2011 +0000
pls: Fix getting past the last line in PLS files
When trying to skip empty lines at the beginning of files.
https://bugzilla.gnome.org/show_bug.cgi?id=643667
plparse/totem-pl-parser-pls.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plparse/totem-pl-parser-pls.c b/plparse/totem-pl-parser-pls.c
index ee6493e..3bab325 100644
--- a/plparse/totem-pl-parser-pls.c
+++ b/plparse/totem-pl-parser-pls.c
@@ -184,7 +184,7 @@ totem_pl_parser_add_pls_with_contents (TotemPlParser *parser,
playlist_title = NULL;
/* Ignore empty lines */
- while (totem_pl_parser_line_is_empty (lines[i]) != FALSE)
+ while (lines[i] != NULL && totem_pl_parser_line_is_empty (lines[i]) != FALSE)
i++;
if (lines[i] == NULL
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]