diff options
author | Jonathan Gordon <rockbox@jdgordon.info> | 2013-02-27 21:15:57 +1100 |
---|---|---|
committer | Jonathan Gordon <rockbox@jdgordon.info> | 2013-02-27 21:15:57 +1100 |
commit | 2febee5265909fd116dce1d39d1091dcbc532b59 (patch) | |
tree | 83df8e23e77d40ba75c929dc2223ac8f75328ceb | |
parent | d76dca165bd3312d78df7f6794d5fbab7f634ecd (diff) |
more error handling for checkwps
Change-Id: I03055d045c0a8e0e63e17b290cc71c54a8dc3634
-rw-r--r-- | lib/skin_parser/skin_parser.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/skin_parser/skin_parser.c b/lib/skin_parser/skin_parser.c index 39a41e9dd3..a26e6ce474 100644 --- a/lib/skin_parser/skin_parser.c +++ b/lib/skin_parser/skin_parser.c @@ -152,7 +152,10 @@ static struct skin_element* skin_parse_viewport(const char** document) else if (callback) { if (callback(retval, callback_data) == CALLBACK_ERROR) + { + skin_error(GOT_CALLBACK_ERROR, cursor); return NULL; + } } #endif @@ -329,6 +332,7 @@ static struct skin_element* skin_parse_line_optional(const char** document, switch (callback(retval, callback_data)) { case CALLBACK_ERROR: + skin_error(GOT_CALLBACK_ERROR, cursor); return NULL; default: break; @@ -475,7 +479,10 @@ static struct skin_element* skin_parse_sublines_optional(const char** document, if (callback) { if (callback(retval, callback_data) == CALLBACK_ERROR) + { + skin_error(GOT_CALLBACK_ERROR, *document); return NULL; + } } #endif *document = cursor; @@ -896,7 +903,10 @@ static int skin_parse_text(struct skin_element* element, const char** document, if (callback) { if (callback(element, callback_data) == CALLBACK_ERROR) + { + skin_error(GOT_CALLBACK_ERROR, *document); return 0; + } } #endif |