From: Ian Jackson Subject: Re: [PATCH 1/9] libxl: fix libxl__abs_path Date: Mon, 13 Jul 2015 18:12:48 +0100 Message-ID: <21923.61840.920833.811619@mariner.uk.xensource.com> References: <1436551257-28887-1-git-send-email-wei.liu2@citrix.com> <1436551257-28887-2-git-send-email-wei.liu2@citrix.com> <1436781452.7019.61.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZEhHi-0004wH-84 for xen-devel@lists.xenproject.org; Mon, 13 Jul 2015 17:12:54 +0000 In-Reply-To: <1436781452.7019.61.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Xen-devel , Wei Liu , Andrew Cooper List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [PATCH 1/9] libxl: fix libxl__abs_path"): > I rather dislike subjects of the form "fix $function", since it gives > very little clue to someone reading the shortlog what is going on. Yes. > In this case I think "libxl: make libxl__abs_path correctly handle a > NULL argument" would be an accurate description. But: it is quite surprising that libxl__abs_path can be legally passed a NULL for any of its parameters. There are no call sites in libxl which can pass a NULL. I think that if we are to retain this feature, it ought to be documented, at least. Maybe _hidden char *libxl__abs_path(libxl__gc *gc, const char *s /* NULL OK */, const char *path); ? Ian.