- if (journal == NULL)
- {
- /* If no journal file name is configured, use the default. */
- if (journal_file_name == NULL)
- {
- const char *output_path = default_output_path ();
- journal_file_name = xasprintf ("%s%s", output_path, "pspp.jnl");
- }
-
- /* Create journal driver. */
- journal = xzalloc (sizeof *journal);
- output_driver_init (&journal->driver, &journal_class, "journal",
- SETTINGS_DEVICE_UNFILTERED);
- journal->file = NULL;
- journal->command_name = NULL;
-
- /* Register journal driver. */
- output_driver_register (&journal->driver);
+ journal = (struct journal_driver) {
+ .driver = {
+ .class = &journal_class,
+ .name = xstrdup ("journal"),
+ .device_type = SETTINGS_DEVICE_UNFILTERED,