[PATCH 1/1] cgitrc: handle value "0" for max-repo-count

Jason A. Donenfeld Jason at zx2c4.com
Fri Oct 19 00:52:03 CEST 2018


Hey Christian,

We should indeed introduce some sanitation helpers to deal with these
in the general case. API suggestion:

type_t parse_int(const char *str, type_t min, type_t max, type_t
fallback_if_invalid);

What would you think of that?

Regards,
Jason


More information about the CGit mailing list