Increment num_attr in parse_attr_line(), not parse_attr()
authorMichael Haggerty <mhagger@alum.mit.edu>
Fri, 12 Aug 2011 21:43:06 +0000 (23:43 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 14 Aug 2011 22:01:58 +0000 (15:01 -0700)
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>
No differences found