libio: use _IO_have_wbackup for wide streams
Checks
| Context |
Check |
Description |
| redhat-pt-bot/TryBot-apply_patch |
success
|
Patch applied to master at the time it was sent
|
| linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 |
success
|
Build passed
|
| redhat-pt-bot/TryBot-32bit |
success
|
Build for i686
|
| linaro-tcwg-bot/tcwg_glibc_check--master-aarch64 |
success
|
Test passed
|
| linaro-tcwg-bot/tcwg_glibc_build--master-arm |
success
|
Build passed
|
| linaro-tcwg-bot/tcwg_glibc_check--master-arm |
success
|
Test passed
|
Commit Message
Fix two wrong uses of _IO_have_backup.
---
libio/wgenops.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
@@ -273,7 +273,7 @@ __wunderflow (FILE *fp)
if (save_for_wbackup (fp, fp->_wide_data->_IO_read_end))
return WEOF;
}
- else if (_IO_have_backup (fp))
+ else if (_IO_have_wbackup (fp))
_IO_free_wbackup_area (fp);
return _IO_UNDERFLOW (fp);
}
@@ -606,6 +606,6 @@ _IO_unsave_wmarkers (FILE *fp)
fp->_markers = NULL;
}
- if (_IO_have_backup (fp))
+ if (_IO_have_wbackup (fp))
_IO_free_wbackup_area (fp);
}