We are currently deploying GitLab EE 10.4.0-rc5. For status updates, please follow https://twitter.com/GitLabStatus

Commit 3608049b by josé bollo

fix bug

Change-Id: I5cc9d3f443a288de76d19cd1557e96f4693db109
Signed-off-by: José Bollo <jobol@nonadev.net>
parent 50921059
......@@ -117,9 +117,10 @@ static int process(const char *template, struct mustach_itf *itf, void *closure,
case '^':
case '#':
/* begin section */
if (rc == DEPTH_MAX)
if (depth == DEPTH_MAX)
return MUSTACH_ERROR_TOO_DEPTH;
if (emit) {
rc = emit;
if (rc) {
rc = itf->enter(closure, name);
if (rc < 0)
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