2007-12-05 Micah Cowan <micah@cowan.name>
* utils.c (subdir_p): Handle the case where d1 is "".
+ * convert.c (convert_all_links): Don't return without
+ deallocating timer.
2007-11-28 Micah Cowan <micah@cowan.name>
if (downloaded_html_set)
cnt = hash_table_count (downloaded_html_set);
if (cnt == 0)
- return;
+ goto cleanup;
file_array = alloca_array (char *, cnt);
string_set_to_array (downloaded_html_set, file_array);
}
secs = ptimer_measure (timer);
- ptimer_destroy (timer);
logprintf (LOG_VERBOSE, _("Converted %d files in %s seconds.\n"),
file_count, print_decimal (secs));
+cleanup:
+ ptimer_destroy (timer);
}
static void write_backup_file (const char *, downloaded_file_t);