aboutsummaryrefslogtreecommitdiffhomepage
path: root/highlight.c
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-06-21 10:48:36 +1000
committerGravatar axel <axel@liljencrantz.se>2006-06-21 10:48:36 +1000
commitb016438c08877cb3b24808d260397a8aa8fe49ce (patch)
tree7d8879449234a75e28b4295725a3df411dcbb3aa /highlight.c
parent7268a4a4e0ddb8ed10df20005cd78c90e900802f (diff)
Update input validation. Always use the magic CHECK macro, which prints an error message including instructions on how to report this problem.
darcs-hash:20060621004836-ac50b-a47f296634eda0c469eb39034603015b1ad7ab5c.gz
Diffstat (limited to 'highlight.c')
-rw-r--r--highlight.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/highlight.c b/highlight.c
index 86c0623d..cea56bf3 100644
--- a/highlight.c
+++ b/highlight.c
@@ -533,14 +533,9 @@ void highlight_shell( wchar_t * buff,
void *context;
wchar_t *cmd=0;
- if( !buff || !color )
- {
- debug( 0, L"%s called with null input", __func__ );
- return;
- }
-
+ CHECK( buff, );
+ CHECK( color, );
-
len = wcslen(buff);
if( !len )