Commit f3ed172
committed
uri: Remove
The parser for a given object is already known from the object itself and
particularly must never change. Reassigning the value in `uri_unserialize()` is
just unsafe, especially since the existing `->uri` is freed with the destructor
of the reassigned parser.
Just rely on the `->parser` field being set to the correct value.uri_parser_name parameter of uri_unserialize()
1 parent 2610f39 commit f3ed172
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
727 | 727 | | |
728 | 728 | | |
729 | 729 | | |
730 | | - | |
| 730 | + | |
731 | 731 | | |
732 | 732 | | |
733 | 733 | | |
| |||
763 | 763 | | |
764 | 764 | | |
765 | 765 | | |
766 | | - | |
767 | 766 | | |
768 | 767 | | |
769 | 768 | | |
| |||
789 | 788 | | |
790 | 789 | | |
791 | 790 | | |
792 | | - | |
| 791 | + | |
793 | 792 | | |
794 | 793 | | |
795 | 794 | | |
| |||
942 | 941 | | |
943 | 942 | | |
944 | 943 | | |
945 | | - | |
| 944 | + | |
946 | 945 | | |
947 | 946 | | |
948 | 947 | | |
| |||
0 commit comments