Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] setup_revisions(): do not access outside argv

From: Miles Bader <hidden>
Date: 2016-06-15 22:46:48

Junio C Hamano [off-list ref] writes:
If a function takes (int ac, char **av), then people should be able to
depend on the usual convention of

 (1) for any i < ac, av[i] is not NULL; and
 (2) av[ac] is NULL.
Hmm, isn't potentially useful to be able to pass a sub-range (of a
longer argv vector) to an ac/av function?  In such a case, av[ac] may
not be NULL.

-Miles

-- 
97% of everything is grunge
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help