summaryrefslogtreecommitdiffstats
path: root/lib/skin_parser/skin_parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/skin_parser/skin_parser.c')
-rw-r--r--lib/skin_parser/skin_parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/skin_parser/skin_parser.c b/lib/skin_parser/skin_parser.c
index 5a5d746c8e..80f5f61699 100644
--- a/lib/skin_parser/skin_parser.c
+++ b/lib/skin_parser/skin_parser.c
@@ -144,7 +144,8 @@ static struct skin_element* skin_parse_viewport(const char** document)
/* Parsing out the viewport tag if there is one */
if(check_viewport(cursor))
{
- skin_parse_tag(retval, &cursor);
+ if (!skin_parse_tag(retval, &cursor))
+ return NULL;
if(*cursor == '\n')
{
cursor++;