Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Revert "Abort curl on parse failure"

I'm fairly sure this isn't the first time I've written this CL, and
then reverted it.

This reverts commit 5d4e2c9.
  • Loading branch information...
commit 5fe1e4ef080346ee20470e59154e472f9d4fc455 1 parent 2264ff0
@falconindy authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 cower.c
View
5 cower.c
@@ -2385,9 +2385,12 @@ void version(void) /* {{{ */
size_t yajl_parse_stream(void *ptr, size_t size, size_t nmemb, void *stream) /* {{{ */
{
+ struct yajl_handle_t *hand = stream;
size_t realsize = size * nmemb;
- return yajl_parse(stream, ptr, realsize) == yajl_status_ok ? realsize : 0;
+ yajl_parse(hand, ptr, realsize);
+
+ return realsize;
} /* }}} */
int read_targets_from_file(FILE *in, alpm_list_t **targets) { /* {{{ */
Please sign in to comment.
Something went wrong with that request. Please try again.