roll back the last two diffs (r6582 and r6583) in favor of a simpler/cleaner/better fix

This commit is contained in:
Charles Kerr
2008-08-18 03:44:09 +00:00
parent a16568db66
commit 812b6a1218
6 changed files with 27 additions and 33 deletions

View File

@@ -1314,7 +1314,7 @@ tr_bencLoadJSONFile( const char * filename, tr_benc * b )
int ret;
size_t contentLen;
uint8_t * content = tr_loadFile( filename, &contentLen );
ret = content ? tr_jsonParse( content, contentLen, b )
ret = content ? tr_jsonParse( content, contentLen, b, NULL )
: TR_ERROR_IO_OTHER;
tr_free( content );
return ret;