pc+-file-reader, sys-file-reader: Fix misuses of zero as null pointer.
[pspp] / utilities / pspp-convert.c
index b7dd30b6c9c9e7325fec3b9f2a2458d787c24877..f21e5bdb8b907cb51a25a331d9311f436fc743e5 100644 (file)
@@ -166,7 +166,7 @@ main (int argc, char *argv[])
 
       if (! decrypt_file (enc, input_fh, output_fh, password))
        goto error;
-         
+
       goto exit;
     }
 
@@ -203,6 +203,8 @@ main (int argc, char *argv[])
              output_filename);
       NOT_REACHED ();
     }
+  if (!writer)
+    error (1, 0, _("%s: error opening output file"), output_filename);
 
   for (i = 0; i < max_cases; i++)
     {