On Mon, Jun 13, 2011 at 10:30:22AM -0700, Junio C Hamano wrote:
quoted
+ if (!pair[0])
+ return error("bogus config parameter: %s", text);
This feels wrong.
Asking strbuf_split() to split a string "foo" with "=" delimiter would
give you one element array ("foo", NULL), a string "fo" would give you
("fo", NULL), and a string "f" would give you ("f", NULL). Shouldn't we
get ("", NULL) if we ask it to split ""?
Yeah, I was making the assumption that strbuf_split was not bugging, and
coding to its output. But I think you are right, that it is simply
returning bogus output.
-Peff