forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit330cafd
committed
Remove no-longer-helpful reliance on fixed-size local array.
Coverity complained about this code, apparently because it uses a localarray of size FUNC_MAX_ARGS without a guard that the input argument listis no longer than that. (Not sure why it complained today, since thiscode's been the same for a long time; possibly it re-analyzed everythingthe List API change touched?)Rather than add a guard, though, let's just get rid of the local arrayaltogether. It was only there to avoid list_nth() calls, and those areno longer expensive.1 parent90317ab commit330cafd
1 file changed
+23
-37
lines changedLines changed: 23 additions & 37 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1734 | 1734 |
| |
1735 | 1735 |
| |
1736 | 1736 |
| |
1737 |
| - | |
1738 | 1737 |
| |
1739 | 1738 |
| |
1740 |
| - | |
1741 |
| - | |
| 1739 | + | |
1742 | 1740 |
| |
1743 | 1741 |
| |
1744 | 1742 |
| |
1745 | 1743 |
| |
1746 | 1744 |
| |
1747 | 1745 |
| |
1748 | 1746 |
| |
1749 |
| - | |
1750 |
| - | |
1751 |
| - | |
1752 |
| - | |
1753 |
| - | |
1754 |
| - | |
1755 |
| - | |
1756 | 1747 |
| |
1757 |
| - | |
| 1748 | + | |
1758 | 1749 |
| |
1759 |
| - | |
| 1750 | + | |
| 1751 | + | |
| 1752 | + | |
1760 | 1753 |
| |
1761 | 1754 |
| |
1762 | 1755 |
| |
1763 |
| - | |
| 1756 | + | |
1764 | 1757 |
| |
1765 | 1758 |
| |
1766 | 1759 |
| |
1767 |
| - | |
| 1760 | + | |
1768 | 1761 |
| |
1769 | 1762 |
| |
1770 | 1763 |
| |
| |||
1773 | 1766 |
| |
1774 | 1767 |
| |
1775 | 1768 |
| |
1776 |
| - | |
| 1769 | + | |
1777 | 1770 |
| |
1778 | 1771 |
| |
1779 | 1772 |
| |
1780 | 1773 |
| |
1781 | 1774 |
| |
1782 | 1775 |
| |
1783 | 1776 |
| |
1784 |
| - | |
1785 |
| - | |
1786 |
| - | |
1787 |
| - | |
1788 |
| - | |
1789 |
| - | |
1790 |
| - | |
1791 |
| - | |
1792 |
| - | |
1793 |
| - | |
1794 |
| - | |
1795 |
| - | |
1796 |
| - | |
1797 |
| - | |
1798 |
| - | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
| 1780 | + | |
| 1781 | + | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
| 1787 | + | |
| 1788 | + | |
| 1789 | + | |
| 1790 | + | |
| 1791 | + | |
1799 | 1792 |
| |
1800 | 1793 |
| |
1801 |
| - | |
1802 |
| - | |
1803 |
| - | |
1804 |
| - | |
1805 |
| - | |
1806 |
| - | |
1807 |
| - | |
1808 | 1794 |
| |
1809 | 1795 |
| |
1810 | 1796 |
| |
|
0 commit comments
Comments
(0)