[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cgit
Subject:    Re: [PATCH 1/1] cgitrc: handle value "0" for max-repo-count
From:       "Jason A. Donenfeld" <Jason () zx2c4 ! com>
Date:       2018-10-18 22:52:03
Message-ID: CAHmME9rN-p2wQzgq7GROR9whSuOCWDfOVTNhcdKS-oyw47sj9w () mail ! gmail ! com
[Download RAW message or body]

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
_______________________________________________
CGit mailing list
CGit@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/cgit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic