diff options
| author | Fabio Alessandrelli | 2018-03-18 16:37:51 +0100 |
|---|---|---|
| committer | Fabio Alessandrelli | 2018-04-03 19:25:24 +0200 |
| commit | 262cb262eb6c10c808dbbd85dd9103ab0f99c32b (patch) | |
| tree | 846176d97409c50349ee59889ee4de28b9051c41 /thirdparty/lws/misc/lejp.c | |
| parent | 9ad180029876a53747df577d8925a055f6b9687e (diff) | |
| download | godot-262cb262eb6c10c808dbbd85dd9103ab0f99c32b.tar.gz godot-262cb262eb6c10c808dbbd85dd9103ab0f99c32b.tar.zst godot-262cb262eb6c10c808dbbd85dd9103ab0f99c32b.zip | |
Diffstat (limited to 'thirdparty/lws/misc/lejp.c')
| -rw-r--r-- | thirdparty/lws/misc/lejp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/thirdparty/lws/misc/lejp.c b/thirdparty/lws/misc/lejp.c index 5407c90f9..38efa8b12 100644 --- a/thirdparty/lws/misc/lejp.c +++ b/thirdparty/lws/misc/lejp.c @@ -444,7 +444,7 @@ lejp_parse(struct lejp_ctx *ctx, const unsigned char *json, int len) goto append_npos; } if (c == '.') { - if (ctx->dcount || (ctx->f & LEJP_SEEN_POINT)) { + if (!ctx->dcount || (ctx->f & LEJP_SEEN_POINT)) { ret = LEJP_REJECT_MP_VAL_NUM_FORMAT; goto reject; } |
