diff options
author | midipix <writeonce@midipix.org> | 2015-12-06 08:28:32 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-10 23:35:31 -0500 |
commit | 76aabf2c240c67ede7734f544be94f64da2c55c5 (patch) | |
tree | 460af7b94992a3635b380e5cef0a5663c61a69a3 /src/internal/perk_output_impl.h | |
parent | d7ed3e2faf8e3bc1aeb1e7fed27cd8a1ff4b2290 (diff) | |
download | perk-76aabf2c240c67ede7734f544be94f64da2c55c5.tar.bz2 perk-76aabf2c240c67ede7734f544be94f64da2c55c5.tar.xz |
API redesign 6/10: pe_common_ctx: protect i/o members against direct modification.
Diffstat (limited to 'src/internal/perk_output_impl.h')
-rw-r--r-- | src/internal/perk_output_impl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/internal/perk_output_impl.h b/src/internal/perk_output_impl.h index d6f328a..62f0322 100644 --- a/src/internal/perk_output_impl.h +++ b/src/internal/perk_output_impl.h @@ -14,10 +14,10 @@ static inline FILE * pe_output_prolog( return fout; else if (!cctx) return 0; - else if (cctx->fdout < 0) + else if (cctx->ioctx->fdout < 0) return stdout; - if ((fdout = dup(cctx->fdout)) < 0) + if ((fdout = dup(cctx->ioctx->fdout)) < 0) return 0; if ((*ftmp = fdopen(fdout,"a"))) |