Commit 95244ae
use xstrdup instead of xmalloc + strcpy
This is one line shorter, and makes sure the length in the
malloc and copy steps match.
Signed-off-by: Jeff King <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent fa3f60b commit 95244ae
3 files changed
+4
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
617 | | - | |
618 | 617 | | |
619 | 618 | | |
620 | | - | |
621 | | - | |
622 | | - | |
| 619 | + | |
623 | 620 | | |
624 | 621 | | |
625 | 622 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
767 | 767 | | |
768 | 768 | | |
769 | 769 | | |
770 | | - | |
771 | | - | |
| 770 | + | |
772 | 771 | | |
773 | 772 | | |
774 | 773 | | |
775 | 774 | | |
776 | 775 | | |
777 | | - | |
778 | | - | |
| 776 | + | |
779 | 777 | | |
780 | 778 | | |
781 | 779 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
566 | 566 | | |
567 | 567 | | |
568 | 568 | | |
569 | | - | |
570 | | - | |
| 569 | + | |
571 | 570 | | |
572 | 571 | | |
573 | 572 | | |
| |||
0 commit comments