From 0f6fe652a45ecfebcab8008dd3507cfc96ddd984 Mon Sep 17 00:00:00 2001 From: James Vega Date: Sun, 14 Oct 2007 07:26:06 +1000 Subject: [PATCH] Use wcscmp instead of darcs-hash:20071013212606-35ec8-ba25df01017fb1c272ea9dae059fb4245e4c02da.gz --- complete.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/complete.c b/complete.c index d0d216b71..91331149d 100644 --- a/complete.c +++ b/complete.c @@ -101,7 +101,7 @@ These functions are used for storing and retrieving tab-completion data, as well response) */ #ifdef USE_GETTEXT -#define C_(wstr) ((wstr==L"")?L"":wgettext(wstr)) +#define C_(wstr) ((wcscmp(wstr, L"")==0)?L"":wgettext(wstr)) #else #define C_(string) (string) #endif @@ -294,7 +294,7 @@ static int condition_test( const wchar_t *condition ) */ } - if( test_res == CC_TRUE ) + if( wcscmp( test_res, CC_TRUE ) == 0 ) { return 1; } @@ -2087,7 +2087,7 @@ static void append_switch( string_buffer_t *out, { wchar_t *esc; - if( !argument || argument==L"" ) + if( !argument || wcscmp( argument, L"") == 0 ) return; esc = escape( argument, 1 );