Skip to content

Commit

Permalink
Fix incorrect indentation of foreach block (#884)
Browse files Browse the repository at this point in the history
The statement in the foreach() block was indented on the same level
which is confusing for reader (and potentially triggers static analysis
tools).
  • Loading branch information
danielgustafsson committed May 12, 2022
1 parent 14229bd commit b337619
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/monitor/version_compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ list_qsort(const List *list, list_qsort_comparator cmp)
i = 0;
list_arr = palloc(sizeof(ListCell *) * len);
foreach(cell, list)
list_arr[i++] = cell;
list_arr[i++] = cell;

qsort(list_arr, len, sizeof(ListCell *), cmp);

Expand Down

0 comments on commit b337619

Please sign in to comment.