replace_file_start: Now takes a file handle instead of a file name
[pspp] / src / data / csv-file-writer.c
index 8e52df50756cdf1b3f75d0d4ea7c020bc3477f49..99fe41351063516cb752b4b9d3acfc436eac83b9 100644 (file)
@@ -154,7 +154,7 @@ csv_writer_open (struct file_handle *fh, const struct dictionary *dict,
     goto error;
 
   /* Create the file on disk. */
-  w->rf = replace_file_start (fh_get_file_name (fh), "w", 0666,
+  w->rf = replace_file_start (fh, "w", 0666,
                               &w->file, NULL);
   if (w->rf == NULL)
     {