From mboxrd@z Thu Jan 1 00:00:00 1970 From: hjemli at gmail.com (Lars Hjemli) Date: Tue, 3 Jan 2012 21:58:45 +0100 Subject: [PATCH] Fix segmentation fault in empty repository In-Reply-To: <1322135687-23478-1-git-send-email-john@metanate.com> References: <1322135687-23478-1-git-send-email-john@metanate.com> Message-ID: On Thu, Nov 24, 2011 at 12:54, John Keeping wrote: > When a repository is empty, the ATOM feed link is written in the header, > but this involves formatting ctx->qry.head which is NULL in this case. > With glibc, vsnprintf formats "%s" with a NULL input as "(null)" but on > Solaris this results in a segmentation fault. ?Since we don't have a > meaningful head for the atom feed in an empty repository, it's simplest > not to write out the link element at all. Thanks, applied to stable. -- larsh