]> sjero.net Git - wget/commit
Fix using deadcode and possible use of NULL pointer
authorTomas Hozza <thozza@redhat.com>
Fri, 26 Apr 2013 12:42:30 +0000 (14:42 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Wed, 10 Jul 2013 21:04:25 +0000 (23:04 +0200)
commitc9c0e4c6418350d913638d73e0a50bebdb5fd983
tree1c99be63622228d5e88cb274c066ba024b932087
parent9e0d87a2485405196c4cdf9164584566502165e2
Fix using deadcode and possible use of NULL pointer

Fix for deadcode in unique_create() so that "opened_name" parameter is
always initialized to a valid string or NULL when returning from
function.

Fix for redirect_output() so that "logfile" is not blindly used in
fprintf() call and checked if it is not NULL.

Signed-off-by: Tomas Hozza <thozza@redhat.com>
src/ChangeLog
src/log.c
src/utils.c