diff --git a/src/lib/direct.cpp b/src/lib/direct.cpp index 36807e724..8ec5fb1e2 100644 --- a/src/lib/direct.cpp +++ b/src/lib/direct.cpp @@ -1070,8 +1070,7 @@ bool ncdirect_canutf8(const ncdirect* n){ } int ncdirect_flush(const ncdirect* nc){ - int r; - while((r = fflush(nc->ttyfp)) == EOF){ + while(fflush(nc->ttyfp) == EOF){ if(errno != EAGAIN){ return -1; }