Re: SEGV when lookup_* returns NULL

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Junio C Hamano
Date: Monday, November 27, 2006 - 2:55 pm

Martin Waitz <tali@admingilde.org> writes:


Making lookup_{specific type} die when they see unexpected type
would not hurt that much, I think, aside from the possibility
that some callers may check NULL to see if object already
exists, but they should be using has_sha1_file() instead.

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
SEGV when lookup_* returns NULL, Martin Waitz, (Mon Nov 27, 2:13 pm)
Re: SEGV when lookup_* returns NULL, Junio C Hamano, (Mon Nov 27, 2:55 pm)
Re: SEGV when lookup_* returns NULL, Johannes Schindelin, (Mon Nov 27, 4:33 pm)
Re: SEGV when lookup_* returns NULL, Junio C Hamano, (Mon Nov 27, 5:13 pm)
Re: SEGV when lookup_* returns NULL, Morten Welinder, (Mon Nov 27, 7:23 pm)