remove redundant check?
This commit is contained in:
parent
5e4a6dcf34
commit
10d0d6ed72
2 changed files with 1 additions and 4 deletions
2
Makefile
2
Makefile
|
@ -1,7 +1,7 @@
|
||||||
CC?=gcc
|
CC?=gcc
|
||||||
|
|
||||||
CFLAGS_DEV=-DJB_PRESET_DEBUG -ggdb -fsanitize=address -Og
|
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
|
CFLAGS+=-pipe -Wall -Wextra -Wshadow -pedantic -std=c99
|
||||||
|
|
||||||
|
|
3
wire.c
3
wire.c
|
@ -62,9 +62,6 @@ char *wire_get_string_impl(wire_context_t *c, bool as_signature)
|
||||||
}
|
}
|
||||||
|
|
||||||
char *str = (char *)&c->data[c->byte_cursor];
|
char *str = (char *)&c->data[c->byte_cursor];
|
||||||
if (strlen(str) != len) {
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
c->byte_cursor = new_cursor;
|
c->byte_cursor = new_cursor;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue