Skip to content

Commit

Permalink
Add small comment
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenthuberdeau committed Oct 18, 2024
1 parent 6936288 commit 6f8c0af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sh.c
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,7 @@ ast handle_side_effects_go(ast node, bool executes_conditionally) {
return handle_fun_call_side_effect(node, 0, executes_conditionally);
} else if (op == '=') {
if (get_op(get_child(node, 1)) == '(') { // Function call
// In that case, we reuse the left hand side of the assignment as the result location
return handle_fun_call_side_effect(get_child(node, 1), get_child(node, 0), executes_conditionally);
} else {
sub1 = handle_side_effects_go(get_child(node, 0), executes_conditionally);
Expand Down

0 comments on commit 6f8c0af

Please sign in to comment.