| Submitter | Michal Sojka |
|---|---|
| Date | 2010-03-14 20:44:18 |
| Message ID | <87ociqzl99.fsf@steelpick.localdomain> |
| Download | mbox | patch |
| Permalink | /patch/430/ |
| State | New |
| Headers | show
Return-Path: <notmuch-bounces@notmuchmail.org> X-Original-To: patchwork@patchwork.madduck.net Delivered-To: patchwork@lotus.madduck.net Received: from seamus.madduck.net (seamus.madduck.net [IPv6:2001:6f8:128a::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by lotus.madduck.net (postfix) with ESMTPS id 7564E321E2 for <patchwork@patchwork.madduck.net>; Sun, 14 Mar 2010 21:44:33 +0100 (CET) Received: from olra.theworths.org (u15218177.onlinehome-server.com [82.165.184.25]) by seamus.madduck.net (postfix) with ESMTP id 5D62C40A568 for <patchwork@patchwork.madduck.net>; Sun, 14 Mar 2010 21:44:29 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id E0B024048F0; Sun, 14 Mar 2010 13:44:27 -0700 (PDT) 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 A-OGDpFtLJep; Sun, 14 Mar 2010 13:44:26 -0700 (PDT) Received: from olra.theworths.org (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id D7D144048F4; Sun, 14 Mar 2010 13:44:25 -0700 (PDT) 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 5761F4048F0 for <notmuch@notmuchmail.org>; Sun, 14 Mar 2010 13:44:24 -0700 (PDT) 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 DO-WG9r3RnRO for <notmuch@notmuchmail.org>; Sun, 14 Mar 2010 13:44:23 -0700 (PDT) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id 1EC61454968 for <notmuch@notmuchmail.org>; Sun, 14 Mar 2010 13:44:23 -0700 (PDT) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 85A7C19F35CC; Sun, 14 Mar 2010 21:44:22 +0100 (CET) Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id C3L-6dTk89pH; Sun, 14 Mar 2010 21:44:21 +0100 (CET) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id B8AC919F33BD; Sun, 14 Mar 2010 21:44:20 +0100 (CET) Received: from steelpick.localdomain (unknown [213.29.198.144]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id 2A7ABFA003; Sun, 14 Mar 2010 21:44:19 +0100 (CET) Received: from wsh by steelpick.localdomain with local (Exim 4.71) (envelope-from <sojkam1@fel.cvut.cz>) id 1Nqufb-00055U-9V; Sun, 14 Mar 2010 21:44:19 +0100 From: Michal Sojka <sojkam1@fel.cvut.cz> To: James Westby <jw+debian@jameswestby.net>, notmuch@notmuchmail.org, Scott Robinson <scott@quadhome.com> In-Reply-To: <87ociqbud3.fsf@jameswestby.net> References: <87mxyabwha.fsf@steelpick.localdomain> <1268590751-7478-1-git-send-email-sojkam1@fel.cvut.cz> <87ociqbud3.fsf@jameswestby.net> Date: Sun, 14 Mar 2010 21:44:18 +0100 Message-ID: <87ociqzl99.fsf@steelpick.localdomain> MIME-Version: 1.0 Subject: [notmuch] [PATCH] Fix invalid JSON output for NULL strings X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." <notmuch.notmuchmail.org> List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>, <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe> List-Archive: <http://notmuchmail.org/pipermail/notmuch> List-Post: <mailto:notmuch@notmuchmail.org> List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help> List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>, <mailto:notmuch-request@notmuchmail.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: notmuch-bounces@notmuchmail.org Errors-To: notmuch-bounces@notmuchmail.org X-Virus-Scanned: clamav-milter 0.95.3 at seamus X-Virus-Status: Clean |
Comments
Michal Sojka - 2010-03-14 20:44:18
Patch
diff --git a/json.c b/json.c index 9614143..0885d3d 100644 --- a/json.c +++ b/json.c @@ -56,7 +56,7 @@ json_quote_str(const void *ctx, const char *str) int len = 0; if (!str) - return NULL; + return (char*)"null"; for (ptr = str; *ptr; len++, ptr++) { if (*ptr < 32 || *ptr == '\"' || *ptr == '\\')