Fix bug #15786: System File Creation crashes if directoy is
[pspp-builds.git] / src / language / data-io / get.c
index 651d222af9745684a337c7c29d7bc242660f6753..0f0824772c216eee796fa5b173155f3578c41efb 100644 (file)
@@ -440,6 +440,8 @@ parse_write_command (enum writer_type writer_type,
     }
   else
     aw->writer = any_writer_open (handle, dict);
+  if (aw->writer == NULL)
+    goto error;
   dict_destroy (dict);
   
   return aw;