mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Remove some useless if statements
This commit is contained in:
parent
351d328c07
commit
70f7cdf1af
@ -1,3 +1,10 @@
|
|||||||
|
2013-12-29 Giuseppe Scrivano <gscrivan@redhat.com>
|
||||||
|
|
||||||
|
* init.c (home_dir): Remove useless 'if'.
|
||||||
|
* warc.c (warc_start_new_file): Likewise.
|
||||||
|
(warc_process_cdx_line): Likewise.
|
||||||
|
(warc_write_response_record): Likewise.
|
||||||
|
|
||||||
2013-12-26 Tim Ruehsen <tim.ruehsen@gmx.de>
|
2013-12-26 Tim Ruehsen <tim.ruehsen@gmx.de>
|
||||||
|
|
||||||
* gnutls.c (ssl_connect_wget): Fix connect timeout failure
|
* gnutls.c (ssl_connect_wget): Fix connect timeout failure
|
||||||
|
@ -462,8 +462,7 @@ home_dir (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
ret = home ? xstrdup (home) : NULL;
|
ret = home ? xstrdup (home) : NULL;
|
||||||
if (buf)
|
free (buf);
|
||||||
free (buf);
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
16
src/warc.c
16
src/warc.c
@ -726,10 +726,9 @@ warc_start_new_file (bool meta)
|
|||||||
|
|
||||||
if (warc_current_file != NULL)
|
if (warc_current_file != NULL)
|
||||||
fclose (warc_current_file);
|
fclose (warc_current_file);
|
||||||
if (warc_current_warcinfo_uuid_str)
|
|
||||||
free (warc_current_warcinfo_uuid_str);
|
free (warc_current_warcinfo_uuid_str);
|
||||||
if (warc_current_filename)
|
free (warc_current_filename);
|
||||||
free (warc_current_filename);
|
|
||||||
|
|
||||||
warc_current_file_number++;
|
warc_current_file_number++;
|
||||||
|
|
||||||
@ -918,8 +917,7 @@ warc_process_cdx_line (char *lineptr, int field_num_original_url,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
free (original_url);
|
free (original_url);
|
||||||
if (checksum_v != NULL)
|
free (checksum_v);
|
||||||
free (checksum_v);
|
|
||||||
free (record_id);
|
free (record_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1417,10 +1415,8 @@ warc_write_response_record (char *url, char *timestamp_str,
|
|||||||
response_uuid);
|
response_uuid);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (block_digest)
|
free (block_digest);
|
||||||
free (block_digest);
|
free (payload_digest);
|
||||||
if (payload_digest)
|
|
||||||
free (payload_digest);
|
|
||||||
|
|
||||||
return warc_write_ok;
|
return warc_write_ok;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user