From e13b2cbd5ed5ffdec7a6e42e2dd098a54f97cc5a Mon Sep 17 00:00:00 2001 From: taipanromania Date: Thu, 15 Jan 2009 09:06:13 +0000 Subject: [PATCH] warning-- --- backend/qr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/qr.c b/backend/qr.c index d1ff17da..479cfd98 100644 --- a/backend/qr.c +++ b/backend/qr.c @@ -39,6 +39,7 @@ QRcode *encode(int security, int size, const unsigned char *intext, int kanji) hint = QR_MODE_8; } + level = QR_ECLEVEL_L; if((security >= 1) && (security <= 4)) { switch (security) { case 1: level = QR_ECLEVEL_L; break; @@ -46,8 +47,6 @@ QRcode *encode(int security, int size, const unsigned char *intext, int kanji) case 3: level = QR_ECLEVEL_Q; break; case 4: level = QR_ECLEVEL_H; break; } - } else { - level = QR_ECLEVEL_L; } if((size >= 1) && (size <= 40)) {