On 01/29/2010 05:32 PM, Thiago Farina wrote:
@@ -43,7 +43,7 @@ static void name_rev(struct commit *commit, } if (name == NULL) { - name = xmalloc(sizeof(rev_name)); + name = xmalloc(sizeof(struct rev_name));
How about sizeof(*name) instead? This way we don't have to change it when the type changes again.
-- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html