diff options
author | Leo Uino <leo@norisys.jp> | 2011-07-14 11:06:47 +0900 |
---|---|---|
committer | Leo Uino <leo@norisys.jp> | 2011-07-14 11:06:47 +0900 |
commit | 35baea42d794bec1fd5f2200f1f6f48877c5c26c (patch) | |
tree | 835460220763ca90bd17ed2c91999ebd28731ca7 /lpg/libqr/data-parse.c | |
parent | 44fc0ba93934ea9915fcd4f1902f49de57f2a949 (diff) | |
download | pdf-simple-sign-35baea42d794bec1fd5f2200f1f6f48877c5c26c.tar.gz pdf-simple-sign-35baea42d794bec1fd5f2200f1f6f48877c5c26c.tar.xz pdf-simple-sign-35baea42d794bec1fd5f2200f1f6f48877c5c26c.zip |
First attempt at parsing
Diffstat (limited to 'lpg/libqr/data-parse.c')
-rw-r--r-- | lpg/libqr/data-parse.c | 3 |
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); |