Correct URL in documentation.
[pspp] / src / output / driver.c
index 6f72ffe739aca687e07bfbd1bb4a92be5c1fd92d..afb5084fa1d2abc0d76c59d77179fe5a86902b97 100644 (file)
@@ -159,6 +159,9 @@ output_submit (struct output_item *item)
 {
   struct output_engine *e = engine_stack_top ();
 
+  if (item == NULL)
+    return;
+
   if (is_syntax_item (item))
     {
       ds_put_cstr (&e->deferred_syntax, text_item_get_text (to_text_item (item)));
@@ -375,7 +378,7 @@ output_driver_create (struct string_map *options)
                      device_string, "terminal", "listing");
       device_type = default_device_type (file_name);
     }
-  
+
   struct file_handle *fh = fh_create_file (NULL, file_name, NULL, fh_default_properties ());
 
   driver = f->create (fh, device_type, options);