From 9298f610f6f26425db36d8727ad533d660a6c5d6 Mon Sep 17 00:00:00 2001 From: axel Date: Sat, 15 Oct 2005 10:51:26 +1000 Subject: 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 --- util.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'util.c') 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 ) -- cgit v1.2.3