Fixed wrong download path for pages with trailing /.
authorDaniel Carl <danielcarl@gmx.de>
Thu, 27 Feb 2014 22:07:02 +0000 (23:07 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Thu, 27 Feb 2014 22:07:02 +0000 (23:07 +0100)
commited6aeaf1e46ec5b381e55252067b2a4d1ec91adc
tree606f9b846ff15994f22514921f41dbbfa4fb5a4f
parentf1454180d573b0d8dc639ba71554147caf5aadee
Fixed wrong download path for pages with trailing /.

If a page has a URL with a trailing slash, the suggested file name was an
empty string. But we appended this empty string as file to the download
directory path, so vimb tries to save the download under a directory path an
not a file.
This patch checks the case where the filename is empty so that the default
download file name can be used.
src/main.c