]> granicus.if.org Git - strace/commitdiff
btrfs.c: cleanup use of tcp->auxstr
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 24 May 2016 01:09:04 +0000 (01:09 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 24 May 2016 14:52:27 +0000 (14:52 +0000)
* btrfs.c (btrfs_ioctl): Reset tcp->auxstr only if it is set.

btrfs.c

diff --git a/btrfs.c b/btrfs.c
index 1eed651ccfd1d6a0b659755bccbebe0329a57ac2..5a4c76fee78f363b46460e93fd3b5cc010dede43 100644 (file)
--- a/btrfs.c
+++ b/btrfs.c
@@ -860,11 +860,11 @@ btrfs_ioctl(struct tcb *tcp, const unsigned int code, const long arg)
 
                tprints("{");
                if (tcp->auxstr) {
+                       tcp->auxstr = NULL;
                        tprints("treeid=");
                        btrfs_print_objectid(args.treeid);
                        tprints(", ");
                }
-               tcp->auxstr = NULL;
 
                tprints("name=");
                print_quoted_string(args.name, sizeof(args.name),