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.
-rw-r--r--source/cmd.c3
-rw-r--r--source/shared.c3
2 files changed, 4 insertions, 2 deletions