author | Michael Haggerty <mhagger@alum.mit.edu> | |
Fri, 12 Aug 2011 21:43:06 +0000 (23:43 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 14 Aug 2011 22:01:58 +0000 (15:01 -0700) | ||
commit | 4c7517c9cc7cfc7961a5c31d7539a71f35fae2c2 | |
tree | 20ba9e36433c54f189302009cae318a60e0a79fb | tree | snapshot |
parent | ba845b755078a043312119609c1ddd7406b20979 | commit | diff |
Increment num_attr in parse_attr_line(), not parse_attr()
num_attr is incremented iff parse_attr() returns non-NULL. So do the
counting in parse_attr_line() instead of within parse_attr(). This
allows an integer rather than a pointer to an integer to be passed to
parse_attr().
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
num_attr is incremented iff parse_attr() returns non-NULL. So do the
counting in parse_attr_line() instead of within parse_attr(). This
allows an integer rather than a pointer to an integer to be passed to
parse_attr().
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
attr.c | diff | blob | history |