* ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
instead of always false.
This commit is contained in:
parent
12ea4b6986
commit
172240dd22
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2010-04-17 Pedro Alves <pedro@codesourcery.com>
|
||||
|
||||
* ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
|
||||
instead of always false.
|
||||
|
||||
2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR corefiles/11511
|
||||
|
|
|
@ -648,5 +648,6 @@ tee_file_isatty (struct ui_file *file)
|
|||
if (tee->magic != &tee_file_magic)
|
||||
internal_error (__FILE__, __LINE__,
|
||||
_("tee_file_isatty: bad magic number"));
|
||||
return (0);
|
||||
|
||||
return ui_file_isatty (tee->one);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue