diff --git a/src/gargoyle.c b/src/gargoyle.c index b4cf268..c28981d 100644 --- a/src/gargoyle.c +++ b/src/gargoyle.c @@ -120,6 +120,10 @@ uint8_t gargoyle_digest_envh(uint16_t optc, struct gargoyle_opt *optv, const cha } else { res = gargoyle_from_rope(opt, brand + opt->brand_sz + 1, flags); } + + if(res) { + return res; + } } return 0; diff --git a/src/scribe.c b/src/scribe.c index 661a5d4..a10502e 100644 --- a/src/scribe.c +++ b/src/scribe.c @@ -9,7 +9,7 @@ uint8_t gargoyle_from_bool(struct gargoyle_opt *opt, const char *brand, const ch *val = !gargoyle_cmp(brand, neg, neg_sz, flags); } - return 0; + return GARGOYLE_ERR_SUCCESS; } uint8_t gargoyle_from_rope(struct gargoyle_opt *opt, const char *brand_val, gargoyle_flag_type flags) { @@ -36,5 +36,5 @@ uint8_t gargoyle_from_rope(struct gargoyle_opt *opt, const char *brand_val, garg return GARGOYLE_ERR_UNKNOWN_TYPE; } - return 0; + return GARGOYLE_ERR_SUCCESS; }