From a5868d67f5548923c4452622a24c42ff90f23188 Mon Sep 17 00:00:00 2001 From: axel Date: Fri, 20 Oct 2006 01:41:27 +1000 Subject: [PATCH] Make failed process expansions expand to zero arguments, not to the original string darcs-hash:20061019154127-ac50b-86975e62d9947819862a98e7b6fff3ff630f26b7.gz --- expand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/expand.c b/expand.c index 2235efe92..790865ba5 100644 --- a/expand.c +++ b/expand.c @@ -655,8 +655,8 @@ static int expand_pid( wchar_t *in, free( in ); else { - *in = L'%'; - al_push( out, in ); + free(in); + return 0; } } else