Commit 1e83e14d by josé bollo

allows NULL start routine

Change-Id: I1d4a0d2feda95a2b582747fab622b3bdd055698d
Signed-off-by: josé bollo's avatarJosé Bollo <jose.bollo@iot.bzh>
parent 7f5a1e39
......@@ -162,7 +162,7 @@ static int process(const char *template, struct mustach_itf *itf, void *closure,
int fmustach(const char *template, struct mustach_itf *itf, void *closure, FILE *file)
{
int rc = itf->start(closure);
int rc = itf->start ? itf->start(closure) : 0;
if (rc == 0)
rc = process(template, itf, closure, file, "{{", "}}");
return rc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment