Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Tolerate a missing or empty repository URL
trim_end() returns NULL when a repo url is empty or all slashes, and the later newline trim dereferenced it. The legacy r= and p=about path also read the last byte of the url without checking it was set.
Diffstat (limited to 'source/shared.c')
-rw-r--r--source/shared.c3
1 file changed, 2 insertions, 1 deletion