aboutsummaryrefslogtreecommitdiffhomepage
path: root/util.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-10-15 10:51:26 +1000
committerGravatar axel <axel@liljencrantz.se>2005-10-15 10:51:26 +1000
commit9298f610f6f26425db36d8727ad533d660a6c5d6 (patch)
tree53c6f257f99c7e35c0975744edf5ca7d4e10818f /util.c
parent638df31ca462b032d59bde586254be5f3dc21e35 (diff)
Add support for specifying event handler for calling job in command supstitution. Add psub shellscript function for process substitution
darcs-hash:20051015005126-ac50b-d2aedca3a50a78362502f3fa9dd8bf25cb7dc6e1.gz
Diffstat (limited to 'util.c')
-rw-r--r--util.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/util.c b/util.c
index 7eb73ec3..a03d7fc4 100644
--- a/util.c
+++ b/util.c
@@ -872,9 +872,13 @@ void sb_append2( string_buffer_t *b, ... )
int sb_printf( string_buffer_t *buffer, const wchar_t *format, ... )
{
va_list va;
+ int res;
+
va_start( va, format );
- sb_vprintf( buffer, format, va );
- va_end( va );
+ res = sb_vprintf( buffer, format, va );
+ va_end( va );
+
+ return res;
}
int sb_vprintf( string_buffer_t *buffer, const wchar_t *format, va_list va_orig )