]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
URI: Panic on invalid getters
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Wed, 2 Feb 2022 23:56:54 +0000 (17:56 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Wed, 2 Feb 2022 23:56:54 +0000 (17:56 -0600)
commitfc2a5418f5c36f6be3ed68917c56a1154acadf25
treedfbe5f42c723c5ba51298a6770ecdd023e5297f0
parent780b69c9ef0edb55b31a1bccb847c931c8bb011d
URI: Panic on invalid getters

Some URIs don't have meaningful local or global paths. I checked the
call hierarchy, and the code sensibly steers away from the corresponding
getters in those cases.

I added null checks, to future-proof the constraint.
src/types/uri.c