Ver código fonte

[Fix] Libucl: Fix messagepack autodetection

pull/4867/head
Vsevolod Stakhov 2 meses atrás
pai
commit
b368f28b84
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      contrib/libucl/ucl_parser.c

+ 1
- 1
contrib/libucl/ucl_parser.c Ver arquivo

@@ -2984,7 +2984,7 @@ ucl_parser_add_chunk_full (struct ucl_parser *parser, const unsigned char *data,

if (parse_type == UCL_PARSE_AUTO && len > 0) {
/* We need to detect parse type by the first symbol */
if ((*data & 0x80) == 0x80 && (*data >= 0xdc && *data <= 0xdf)) {
if ((*data & 0x80) == 0x80) {
parse_type = UCL_PARSE_MSGPACK;
}
else if (*data == '(') {

Carregando…
Cancelar
Salvar