ansilove

ANSI and ASCII art to PNG converter in C
Log | Files | Refs | README | LICENSE

commit 9fad1300ab14b987de7d8547b420a447d6974dd9
parent 5f3ae01498cd590a1e0f83ae84640c94682c8bb5
Author: Frederic Cambus <fred@statdns.com>
Date:   Sun, 29 Jul 2018 23:59:45 +0200

There is no need for the outputName variable anymore

Diffstat:
Msrc/main.c | 8++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/main.c b/src/main.c @@ -224,15 +224,11 @@ int main(int argc, char *argv[]) { if (!justDisplaySAUCE) { // create output file name if output is not specified - char *outputName; - if (!output) { - outputName = input; // appending ".png" extension to output file name - asprintf(&options.fileName, "%s%s", outputName, ".png"); + asprintf(&options.fileName, "%s%s", input, ".png"); } else { - outputName = output; - options.fileName = outputName; + options.fileName = output; } if (options.retinaScaleFactor) {