Return NULL if fgets returns NULL (dump_log): If both first_old and

2001-08-03  Bradford Hovinen  <hovinen@ximian.com>

	* config-log.c (load_log_entry): Return NULL if fgets returns NULL
	(dump_log): If both first_old and log_data are NULL, go ahead and
	dump the file, since nothing has been loaded yet
	(config_log_garbage_collect): Don't bother dumping the log file or
	reloading

2001-08-02  Bradford Hovinen  <hovinen@ximian.com>

	* config-log.c (config_log_garbage_collect): Implement
	(dump_log): Don't dump the old file if first_old is NULL

	* main.c (main): Support --garbage_collect

	* location.c (location_garbage_collect):
	(garbage_collect_cb): Implement
This commit is contained in:
Bradford Hovinen 2001-08-03 14:38:09 +00:00 committed by Bradford Hovinen (Gdict maintainer)
parent 2989b795b3
commit a1c5aa388f
6 changed files with 185 additions and 36 deletions

View file

@ -149,4 +149,6 @@ gboolean location_does_backend_change (Location *location,
ConfigLog *location_get_config_log (Location *location);
void location_garbage_collect (Location *location);
#endif /* __LOCATION */