aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJ08nY2018-07-09 21:25:11 +0200
committerJ08nY2018-07-09 21:25:11 +0200
commit57888634921b61a828f9b98632b8a450bd6445f2 (patch)
treecc9bb064b4926360bfb023be800e3c4f1bafb2fd /src
parent1be7218990f93c442fa71a073ab16e862092b205 (diff)
downloadecgen-57888634921b61a828f9b98632b8a450bd6445f2.tar.gz
ecgen-57888634921b61a828f9b98632b8a450bd6445f2.tar.zst
ecgen-57888634921b61a828f9b98632b8a450bd6445f2.zip
Diffstat (limited to 'src')
-rw-r--r--src/gen/hex.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gen/hex.c b/src/gen/hex.c
index c91f522..58250a0 100644
--- a/src/gen/hex.c
+++ b/src/gen/hex.c
@@ -109,9 +109,8 @@ CHECK(hex_check_param) {
int result = OFFSET_FIELD - state;
for (offset_e i = OFFSET_SEED; i < OFFSET_END; ++i) {
if (params[i]) {
- if (strstr(params[i], search_hex)) {
+ if (result != 1 && strstr(params[i], search_hex)) {
result = 1;
- break;
}
if (pari[i]) {
pari_free(params[i]);