forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit258f48f
committed
Change some unnecessary MemSet calls
MemSet() with a value other than 0 just falls back to memset(), so theindirection is unnecessary if the value is constant and not 0. Sincethere is some interest in getting rid of MemSet(), this gets some easycases out of the way. (There are a few MemSet() calls that I didn'tchange to maintain the consistency with their surrounding code.)Discussion:https://www.postgresql.org/message-id/flat/CAEudQApCeq4JjW1BdnwU=m=-DvG5WyUik0Yfn3p6UNphiHjj+w@mail.gmail.com1 parent8cd61d2 commit258f48f
File tree
8 files changed
+13
-13
lines changed- contrib
- hstore
- intarray
- ltree
- oid2name
- pg_trgm
- src/backend
- access/hash
- replication
- utils/adt
8 files changed
+13
-13
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
459 | 459 |
| |
460 | 460 |
| |
461 | 461 |
| |
462 |
| - | |
| 462 | + | |
463 | 463 |
| |
464 | 464 |
| |
465 | 465 |
| |
| |||
475 | 475 |
| |
476 | 476 |
| |
477 | 477 |
| |
478 |
| - | |
| 478 | + | |
479 | 479 |
| |
480 | 480 |
| |
481 | 481 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
420 | 420 |
| |
421 | 421 |
| |
422 | 422 |
| |
423 |
| - | |
| 423 | + | |
424 | 424 |
| |
425 | 425 |
| |
426 | 426 |
| |
| |||
436 | 436 |
| |
437 | 437 |
| |
438 | 438 |
| |
439 |
| - | |
| 439 | + | |
440 | 440 |
| |
441 | 441 |
| |
442 | 442 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
345 | 345 |
| |
346 | 346 |
| |
347 | 347 |
| |
348 |
| - | |
| 348 | + | |
349 | 349 |
| |
350 | 350 |
| |
351 | 351 |
| |
| |||
361 | 361 |
| |
362 | 362 |
| |
363 | 363 |
| |
364 |
| - | |
| 364 | + | |
365 | 365 |
| |
366 | 366 |
| |
367 | 367 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
424 | 424 |
| |
425 | 425 |
| |
426 | 426 |
| |
427 |
| - | |
| 427 | + | |
428 | 428 |
| |
429 | 429 |
| |
430 | 430 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
914 | 914 |
| |
915 | 915 |
| |
916 | 916 |
| |
917 |
| - | |
| 917 | + | |
918 | 918 |
| |
919 | 919 |
| |
920 | 920 |
| |
| |||
930 | 930 |
| |
931 | 931 |
| |
932 | 932 |
| |
933 |
| - | |
| 933 | + | |
934 | 934 |
| |
935 | 935 |
| |
936 | 936 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
760 | 760 |
| |
761 | 761 |
| |
762 | 762 |
| |
763 |
| - | |
| 763 | + | |
764 | 764 |
| |
765 | 765 |
| |
766 | 766 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1410 | 1410 |
| |
1411 | 1411 |
| |
1412 | 1412 |
| |
1413 |
| - | |
| 1413 | + | |
1414 | 1414 |
| |
1415 | 1415 |
| |
1416 | 1416 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
753 | 753 |
| |
754 | 754 |
| |
755 | 755 |
| |
756 |
| - | |
| 756 | + | |
757 | 757 |
| |
758 | 758 |
| |
759 | 759 |
| |
| |||
769 | 769 |
| |
770 | 770 |
| |
771 | 771 |
| |
772 |
| - | |
| 772 | + | |
773 | 773 |
| |
774 | 774 |
| |
775 | 775 |
| |
|
0 commit comments
Comments
(0)