1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-02 04:41:35 +00:00

The program dumped core when read/write was used without a conversion of the

input to binary data.


git-svn-id: svn://svn.cc65.org/cc65/trunk@5651 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
uz 2012-04-22 21:57:28 +00:00
parent cd7e65f97e
commit 0ff4e5cf64

View File

@ -302,6 +302,11 @@ static void OptWrite (const char* Opt attribute ((unused)), const char* Arg)
/* Parse the argument */
Collection* A = ParseAttrList (Arg, NameList, 2);
/* We must have output data */
if (D == 0) {
Error ("No conversion, so there's nothing to write");
}
/* Write the file */
WriteOutputFile (D, A, C);