aboutsummaryrefslogtreecommitdiffhomepage
path: root/common.h
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-05-03 02:28:30 +1000
committerGravatar axel <axel@liljencrantz.se>2006-05-03 02:28:30 +1000
commit92fde30c0c4ac336aff8eda08f9e164b0f5761d9 (patch)
treeef66eabb2fc918ecbb0a822ebdfe4c190d3afb92 /common.h
parentd690a15b29e69b2dcd762541e5ed708c4f304c27 (diff)
Fix segfault when using the 'set' command with no arguments
darcs-hash:20060502162830-ac50b-d3ab63c29a6daeaa62803923b060ec69942911f8.gz
Diffstat (limited to 'common.h')
-rw-r--r--common.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/common.h b/common.h
index 60bcb878..cb7e9d0a 100644
--- a/common.h
+++ b/common.h
@@ -181,9 +181,11 @@ void error_reset();
const wchar_t *wsetlocale( int category, const wchar_t *locale );
/**
- Checks if \c needle is included in the list of strings specified
+ Checks if \c needle is included in the list of strings specified. A warning is printed if needle is zero.
\param needle the string to search for in the list
+
+ \return zero is needle is not found, of if needle is null, non-zero otherwise
*/
int contains_str( const wchar_t *needle, ... );