metalink: fix improbable crash parsing metalink filename
authorNick Zitzmann <nickzman@gmail.com>
Wed, 20 Feb 2013 02:03:39 +0000 (19:03 -0700)
committerNick Zitzmann <nickzman@gmail.com>
Wed, 20 Feb 2013 02:03:39 +0000 (19:03 -0700)
commit80e2b3edb9755ff915185b4fbfa285d482c6bfc6
tree6d9ca7c15e6a1dc6f2f8002b948ed82d7f43defe
parent52605e006cddccf8b7194389f7e14c04bee089c3
metalink: fix improbable crash parsing metalink filename

The this_url pointer wasn't being initialized, so if strdup() would return
null when copying the filename in a metalink file, then hilarity would
ensue during the cleanup phase. This change was brought to you by clang,
which noticed this and raised a warning.
src/tool_operate.c