Perhaps I misunderstand the purpose of it but I think instead you should have
fileData[rd] = 0;
on the line before you do yajl_tree_parse.
My rationale is because not having fileData[rd] = 0; potentially breaks the example, and as long as you read anything into fileData these lines have no point.
Please correct me if I'm misunderstanding something.
In parse_config.c you have the following code:
Perhaps I misunderstand the purpose of it but I think instead you should have
on the line before you do yajl_tree_parse.
My rationale is because not having fileData[rd] = 0; potentially breaks the example, and as long as you read anything into fileData these lines have no point.
Please correct me if I'm misunderstanding something.