aboutsummaryrefslogtreecommitdiff
path: root/lpg/libqr/data-parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'lpg/libqr/data-parse.c')
-rw-r--r--lpg/libqr/data-parse.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lpg/libqr/data-parse.c b/lpg/libqr/data-parse.c
index 801aa66..d641c47 100644
--- a/lpg/libqr/data-parse.c
+++ b/lpg/libqr/data-parse.c
@@ -220,6 +220,9 @@ enum qr_data_type qr_parse_data(const struct qr_data * input,
{
qr_bitstream_seek(input->bits, input->offset);
+ *output = NULL;
+ *length = 0;
+
switch (read_data_type(input->bits)) {
case QR_DATA_NUMERIC:
return parse_numeric(input, output, length);