fix incorrect return value for fwide function
authorRich Felker <dalias@aerifal.cx>
Tue, 1 Jul 2014 22:49:54 +0000 (18:49 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 28 Jul 2014 04:27:58 +0000 (00:27 -0400)
commit797cf20a0e490d56a80f8df483ca28db1e1f368d
tree9995f1439cff7bcb77a39cf4375493265f61ddc4
parent726df5a8bc03a30afdb123edfeae5da180b77f79
fix incorrect return value for fwide function

when the orientation of the stream was already set, fwide was
incorrectly returning its argument (the requested orientation) rather
than the actual orientation of the stream.

(cherry picked from commit ebd8142a6ae19db1a5440d11c01afc7529eae0cd)
src/stdio/fwide.c