Skip to content

Commit c6ef057

Browse files
committed
Properly set next property for final node
1 parent 72b287a commit c6ef057

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

objpath.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ void *objpath_compile(char *data) {
117117
node_t *final = malloc(sizeof(node_t));
118118
assert(final);
119119
final->type = NODE_SUBMIT;
120+
final->next = NULL;
120121
if(prev) {
121122
prev->next = final;
122123
} else {

0 commit comments

Comments
 (0)