Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 75E9F4196F2 for ; Mon, 19 Apr 2010 22:27:11 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8lBbCwImhGeZ for ; Mon, 19 Apr 2010 22:27:09 -0700 (PDT) Received: from mail-wy0-f181.google.com (mail-wy0-f181.google.com [74.125.82.181]) by olra.theworths.org (Postfix) with ESMTP id 8F16A431FC1 for ; Mon, 19 Apr 2010 22:27:08 -0700 (PDT) Received: by wyj26 with SMTP id 26so3178850wyj.26 for ; Mon, 19 Apr 2010 22:27:07 -0700 (PDT) Received: by 10.216.160.8 with SMTP id t8mr1804469wek.101.1271741227412; Mon, 19 Apr 2010 22:27:07 -0700 (PDT) Received: from ut.hh.sledj.net (host83-217-165-81.dsl.vispa.com [83.217.165.81]) by mx.google.com with ESMTPS id x14sm54752319wbs.18.2010.04.19.22.27.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 19 Apr 2010 22:27:05 -0700 (PDT) Received: by ut.hh.sledj.net (Postfix, from userid 1000) id E5BC0594163; Tue, 20 Apr 2010 06:27:02 +0100 (BST) To: Carl Worth , notmuch Subject: Re: pull request In-Reply-To: <87ljcj2u4z.fsf@yoom.home.cworth.org> References: <87sk722sfq.fsf@ut.hh.sledj.net> <87eiibq22s.fsf@ut.hh.sledj.net> <87ljcj2u4z.fsf@yoom.home.cworth.org> User-Agent: Notmuch/0.2-20-g89ec2c1 (http://notmuchmail.org) Emacs/23.1.1 (x86_64-pc-linux-gnu) From: David Edmondson Date: Tue, 20 Apr 2010 06:27:02 +0100 Message-ID: <8739yq8zix.fsf@ut.hh.sledj.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Apr 2010 05:27:12 -0000 On Mon, 19 Apr 2010 11:07:40 -0700, Carl Worth wrote: > > commit 8586a86b9dd4ed2406a2fbda6c08bdc6a598cfd8 > > debian: git should ignore packaging intermediate files > > I committed an alternate version of this, (with a new debian/.gitignore > file). I used more wildcarding too. And I couldn't actually find how to > make all these files appear. If you need more ignores, just let me know > (and let me know what commands trigger those, since I'm curious). >From memory I ran 'debuild'. > > commit 53c4e64943d09b07e75c9258fc9f954c87a490d6 > > json: Avoid calling strlen(NULL) > > That commit message describes this hunk of the patch: > > > + if (str == NULL) > > + str = ""; > > + > > return (json_quote_chararray (ctx, str, strlen (str))); > > But this other hunk looks independent. What's going on here? > > > - if (len == 0) > > - return (char *)"\"\""; > > - > > So I haven't committed this piece yet. The second chunk was intended to cover a similar case (len == 0), but becomes unnecessary after the first chunk. At least, that's what I convinced myself after the conversation with Anthony Towns (id:h2y87b3a4191004060117v5421db8ejbe3030d0626e7440@mail.gmail.com). dme. -- David Edmondson, http://dme.org