remove redundant check?

This commit is contained in:
hippoz 2023-01-16 13:59:10 +02:00
parent 5e4a6dcf34
commit 10d0d6ed72
Signed by: hippoz
GPG key ID: 56C4E02A85F2FBED
2 changed files with 1 additions and 4 deletions

View file

@ -1,7 +1,7 @@
CC?=gcc
CFLAGS_DEV=-DJB_PRESET_DEBUG -ggdb -fsanitize=address -Og
CFLAGS_RELEASE=-O3 -march=native -mtune=native -fgraphite-identity -flto
CFLAGS_RELEASE=-O2 -ggdb
CFLAGS+=-pipe -Wall -Wextra -Wshadow -pedantic -std=c99

3
wire.c
View file

@ -62,9 +62,6 @@ char *wire_get_string_impl(wire_context_t *c, bool as_signature)
}
char *str = (char *)&c->data[c->byte_cursor];
if (strlen(str) != len) {
return NULL;
}
c->byte_cursor = new_cursor;