Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit aa36e6f

Browse filesBrowse files
committed
Fix bug in extracting empty tree.
1 parent f0c5735 commit aa36e6f
Copy full SHA for aa36e6f

File tree

1 file changed

+6
-3
lines changed
Filter options

1 file changed

+6
-3
lines changed

‎jsquery_extract.c

Copy file name to clipboardExpand all lines: jsquery_extract.c
+6-3Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -574,9 +574,12 @@ extractJsQuery(JsQuery *jq, MakeEntryHandler handler, Pointer extra)
574574
ExtractedNode *root;
575575

576576
root = recursiveExtract(VARDATA(jq), 0, false, NULL);
577-
flatternTree(root);
578-
simplifyRecursive(root);
579-
root = makeEntries(root, handler, extra);
577+
if (root)
578+
{
579+
flatternTree(root);
580+
simplifyRecursive(root);
581+
root = makeEntries(root, handler, extra);
582+
}
580583
return root;
581584
}
582585

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.