dwebp: fix stdout related output

logic was incorrect for the error output

Change-Id: I89e665f8065490e12e1bf3d3008087d42daee16b
This commit is contained in:
James Zern 2013-08-19 17:52:33 -07:00
parent 4c7322c86f
commit 3a65122a53

View File

@ -501,9 +501,9 @@ static int SaveOutput(const WebPDecBuffer* const buffer,
} }
} else { } else {
if (fout != stdout) { if (fout != stdout) {
fprintf(stderr, "Error writing to stdout !!\n");
} else {
fprintf(stderr, "Error writing file %s !!\n", out_file); fprintf(stderr, "Error writing file %s !!\n", out_file);
} else {
fprintf(stderr, "Error writing to stdout !!\n");
} }
} }
return ok; return ok;