aboutsummaryrefslogtreecommitdiffhomepage
path: root/exec.c
diff options
context:
space:
mode:
authorGravatar liljencrantz <liljencrantz@gmail.com>2007-09-23 08:20:41 +1000
committerGravatar liljencrantz <liljencrantz@gmail.com>2007-09-23 08:20:41 +1000
commit657e3f8147c66e7058fa6d2dcbe1e7df0f4ca70e (patch)
treeb18f4db2bf2d0eb7c4c653bc5d1619649f02a481 /exec.c
parente6b9955fc187b257337429b7711c3d1558e43ff3 (diff)
Whitespace fixes, etc.
darcs-hash:20070922222041-75c98-5aeb13041abd7ca8f9989e209fbaa5441fa78756.gz
Diffstat (limited to 'exec.c')
-rw-r--r--exec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/exec.c b/exec.c
index beb3c8c7..c1719e27 100644
--- a/exec.c
+++ b/exec.c
@@ -1304,7 +1304,7 @@ void exec( job_t *j )
case INTERNAL_BUILTIN:
{
- int skip_fork=0;
+ int skip_fork;
/*
Handle output from builtin commands. In the general
@@ -1330,7 +1330,7 @@ void exec( job_t *j )
performance quite a bit in complex completion code.
*/
- io_data_t *io = io_get( j->io, 1 );
+ io_data_t *io = io_get( j->io, 1 );
int buffer_stdout = io && io->io_mode == IO_BUFFER;
if( ( !sb_err->used ) &&
@@ -1338,10 +1338,10 @@ void exec( job_t *j )
( sb_out->used ) &&
( buffer_stdout ) )
{
- char *res = wcs2str( (wchar_t *)sb_out->buff );
+ char *res = wcs2str( (wchar_t *)sb_out->buff );
b_append( io->param2.out_buffer, res, strlen( res ) );
skip_fork = 1;
- free( res );
+ free( res );
}
for( io = j->io; io; io=io->next )