From: Denys Vlasenko Date: Thu, 1 Sep 2011 09:27:37 +0000 (+0200) Subject: * desc.c (decode_select): Set tcp->auxstr as late as possible. X-Git-Tag: v4.7~265 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1161725b8ec3934ac25f12b6d8ae81bc9ffa8b2c;p=strace * desc.c (decode_select): Set tcp->auxstr as late as possible. Signed-off-by: Denys Vlasenko --- diff --git a/desc.c b/desc.c index 4d46339e..9a858669 100644 --- a/desc.c +++ b/desc.c @@ -549,7 +549,6 @@ decode_select(struct tcb *tcp, long *args, enum bitness_t bitness) if (!fds) die_out_of_memory(); - tcp->auxstr = outstr; outptr = outstr; sep = ""; for (i = 0; i < 3; i++) { @@ -594,6 +593,7 @@ decode_select(struct tcb *tcp, long *args, enum bitness_t bitness) } #endif /* LINUX */ *outptr = '\0'; + tcp->auxstr = outstr; return RVAL_STR; #undef end_outstr }