aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2007-01-27 12:10:26 +1000
committerGravatar axel <axel@liljencrantz.se>2007-01-27 12:10:26 +1000
commitd480d892c9aa18fc98598e830066d79fc3459469 (patch)
treeb4c2350f3eb64b6426d8dcd9b053ad500c25e764 /common.c
parentf2ccbe7374a4afbc404e3aec05648200ee253310 (diff)
Do not call getc if getwc fails - mixing wide and byte-based readin may cause a crash. IT's better to simply hope that getwc can recover.
darcs-hash:20070127021026-ac50b-b85e10029d2bc0ce4857ec48945a92270e499a07.gz
Diffstat (limited to 'common.c')
-rw-r--r--common.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/common.c b/common.c
index 3d5a97ca..5ea8cedd 100644
--- a/common.c
+++ b/common.c
@@ -183,8 +183,6 @@ int fgetws2( wchar_t **b, int *len, FILE *f )
if( errno == EILSEQ )
{
-
- getc( f );
continue;
}