diff --git a/qrenc.c b/qrenc.c index c8e721de..f9194a9c 100644 --- a/qrenc.c +++ b/qrenc.c @@ -778,11 +778,9 @@ static int writeANSI(const QRcode *qrcode, const char *outfile) white_s = strlen(white); black_s = strlen(black); - size = 1; - fp = openFile(outfile); - realwidth = (qrcode->width + margin * 2) * size; + realwidth = qrcode->width + margin * 2; buffer_s = (realwidth * white_s) * 2; buffer = malloc(buffer_s); if (buffer == NULL) { @@ -967,8 +965,6 @@ static int writeASCII(const QRcode *qrcode, const char *outfile, int invert) white = '#'; } - size = 1; - fp = openFile(outfile); realwidth = (qrcode->width + margin * 2) * 2;