From: Ian Campbell Subject: Re: [PATCH V3 03/10] libxl_json: Replace JSON_TRUE/FALSE by JSON_BOOL. Date: Fri, 5 Oct 2012 17:28:47 +0100 Message-ID: <1349454527.20946.144.camel@zakaz.uk.xensource.com> References: <1348683325-12367-1-git-send-email-anthony.perard@citrix.com> <1348683325-12367-4-git-send-email-anthony.perard@citrix.com> <1349442649.20946.89.camel@zakaz.uk.xensource.com> <20591.2652.642081.644934@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20591.2652.642081.644934@mariner.uk.xensource.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 Jackson Cc: Anthony Perard , Xen Devel List-Id: xen-devel@lists.xenproject.org On Fri, 2012-10-05 at 17:27 +0100, Ian Jackson wrote: > Ian Campbell writes ("Re: [PATCH V3 03/10] libxl_json: Replace JSON_TRUE/FALSE by JSON_BOOL."): > > Just wondering if maybe there ought to be an assert in each of those? > > It shouldn't be an assertion. In general these objects are > unmarshalled from serialisations provided outside the process, so they > may contain "wrong" things. I assumed they were all checked before use, since otherwise why would you be calling that particular variant of the getter, but if not then that's fine too. Ian.