Received: from eggs.gnu.org ([2001:4830:134:3::10]:50755) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4qNX-0002BZ-7E for qemu-devel@nongnu.org; Tue, 16 Jun 2015 08:54:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4qNS-00084m-8S for qemu-devel@nongnu.org; Tue, 16 Jun 2015 08:54:11 -0400 Date: Tue, 16 Jun 2015 14:53:55 +0200 From: "Michael S. Tsirkin" Message-ID: <1434458200-23440-4-git-send-email-mst@redhat.com> References: <1434458200-23440-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1434458200-23440-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PATCH RFC 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