From 96433dc8cbc6242adc11f78590068f37f88cfc30 Mon Sep 17 00:00:00 2001 From: Leo Uino Date: Mon, 24 Dec 2012 21:47:33 +0900 Subject: Fixes thanks to Roland Illig --- lpg/libqr/code-parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lpg/libqr/code-parse.c') diff --git a/lpg/libqr/code-parse.c b/lpg/libqr/code-parse.c index 3fca4b2..a84df72 100644 --- a/lpg/libqr/code-parse.c +++ b/lpg/libqr/code-parse.c @@ -216,10 +216,10 @@ int qr_code_parse(const void * buffer, struct qr_code code; enum qr_ec_level ec; int mask; - struct qr_bitstream * data_bits; + struct qr_bitstream * data_bits = NULL; int status; - fprintf(stderr, "parsing code bitmap %lux%lu\n", line_bits, line_count); + fprintf(stderr, "parsing code bitmap %lux%lu\n", (unsigned long) line_bits, (unsigned long) line_count); if (line_bits != line_count || line_bits < 21 -- cgit v1.2.3-70-g09d2