From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42941) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z57iW-00017T-6P for qemu-devel@nongnu.org; Wed, 17 Jun 2015 03:25:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z57iV-0001sR-F2 for qemu-devel@nongnu.org; Wed, 17 Jun 2015 03:25:00 -0400 Date: Wed, 17 Jun 2015 09:24:49 +0200 From: "Michael S. Tsirkin" Message-ID: <1434525861-21768-4-git-send-email-mst@redhat.com> References: <1434525861-21768-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1434525861-21768-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PATCH v2 3/3] block/nfs: switch to error_init_local List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, qemu-block@nongnu.org, Jeff Cody , Peter Lieven , armbru@redhat.com, dgilbert@redhat.com We probably should just switch everyone, this is just to demonstrate the API usage. Signed-off-by: Michael S. Tsirkin --- block/nfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/nfs.c b/block/nfs.c index ca9e24e..de4b8c3 100644 --- a/block/nfs.c +++ b/block/nfs.c @@ -385,7 +385,7 @@ static int nfs_file_open(BlockDriverState *bs, QDict *options, int flags, NFSClient *client = bs->opaque; int64_t ret; QemuOpts *opts; - Error *local_err = NULL; + Error *local_err = error_init_local(errp); client->aio_context = bdrv_get_aio_context(bs); -- MST