]> git.proxmox.com Git - mirror_qemu.git/commit - hw/9pfs/9p-local.c
9pfs: remove side-effects in local_open() and local_opendir()
authorGreg Kurz <groug@kaod.org>
Sun, 26 Feb 2017 22:41:55 +0000 (23:41 +0100)
committerGreg Kurz <groug@kaod.org>
Tue, 28 Feb 2017 10:21:14 +0000 (11:21 +0100)
commit21328e1e57f526e3f0c2fcd00f10c8aa6e7bc07f
tree270327f9b95346c9e1817a450bdee79be588dddc
parent00c90bd1c2ff6aabb9ca948a254ba044a403e399
9pfs: remove side-effects in local_open() and local_opendir()

If these functions fail, they should not change *fs. Let's use local
variables to fix this.

Signed-off-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/9pfs/9p-local.c