commit | cc6a45c92e544b3350202aa3b538b9ed8e5d9a88 | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Mon May 13 10:16:14 2019 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Mon May 13 10:16:14 2019 +0200 |
tree | efbe8796a5b38454471efe58c8fd4fb477a473d6 | |
parent | f2de0eda966637ee3888d497f75e1311b0bb21b1 [diff] |
parsers BUGFIX uninitialized variable storing number of read bytes Fixes #777
diff --git a/src/common.c b/src/common.c index dc96310..a35c72c 100644 --- a/src/common.c +++ b/src/common.c
@@ -181,6 +181,10 @@ int aux; int i; + if (bytes_read) { + (*bytes_read) = 0; + } + c = (*input)[0]; LY_CHECK_RET(!c, LY_EINVAL);