summaryrefslogtreecommitdiff
path: root/desc.c
diff options
context:
space:
mode:
Diffstat (limited to 'desc.c')
-rw-r--r--desc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/desc.c b/desc.c
index 00bf37b..4276a81 100644
--- a/desc.c
+++ b/desc.c
@@ -538,7 +538,8 @@ decode_select(struct tcb *tcp, long *args, enum bitness_t bitness)
if (syserror(tcp))
return 0;
- if ((nfds = tcp->u_rval) == 0) {
+ nfds = tcp->u_rval;
+ if (nfds == 0) {
tcp->auxstr = "Timeout";
return RVAL_STR;
}