fix segfault on wrong urls (bug 36570)

This commit is contained in:
Ángel González 2012-05-31 22:57:41 +02:00 committed by Giuseppe Scrivano
parent 2b1dd8d23b
commit ee9d4a9057
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2012-05-31 Ángel González <keisial@gmail.com>
* convert.c: fix segfault on wrong urls (bug 36570)
2012-05-13 Giuseppe Scrivano <gscrivano@gnu.org>
* bootstrap.conf (gnulib_modules): Add `git-version-gen'.

View File

@ -124,6 +124,9 @@ convert_links_in_hashtable (struct hash_table *downloaded_set,
set_uri_encoding (pi, opt.locale, true);
u = url_parse (cur_url->url->url, NULL, pi, true);
if (!u)
continue;
local_name = hash_table_get (dl_url_file_map, u->url);
/* Decide on the conversion type. */