Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jun 2017 20:23:46 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r320508 - head/lib/libc/stdio
Message-ID:  <201706302023.v5UKNkxZ000895@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Fri Jun 30 20:23:46 2017
New Revision: 320508
URL: https://svnweb.freebsd.org/changeset/base/320508

Log:
  Fix typo in the r320472 change to fgetws().  Return proper value.
  
  Reported by:	Oleg Ginzburg <olevole@olevole.ru>
  Reviewed by:	vangyzen
  Sponsored by:	The FreeBSD Foundation
  MFC after:	13 days

Modified:
  head/lib/libc/stdio/fgetws.c

Modified: head/lib/libc/stdio/fgetws.c
==============================================================================
--- head/lib/libc/stdio/fgetws.c	Fri Jun 30 20:06:15 2017	(r320507)
+++ head/lib/libc/stdio/fgetws.c	Fri Jun 30 20:23:46 2017	(r320508)
@@ -116,7 +116,7 @@ ok:
 	ret = ws;
 end:
 	FUNLOCKFILE_CANCELSAFE();
-	return (ws);
+	return (ret);
 
 error:
 	ret = NULL;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201706302023.v5UKNkxZ000895>