From ab0b1c37bb2cc13c971461bba419f6ce5f6774bf Mon Sep 17 00:00:00 2001 From: Alexandra Ellwood Date: Wed, 1 Oct 2008 21:59:16 +0000 Subject: Make unset strings in kim_options and kim_selection_hints be empty strings rather than NULL. This simplifies the stream code (and makes it easier to read and debug). In order to prevent copying tons of NUL bytes around, special case kim_string functions to use a special constant kim_empty_string. ticket: 6055 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20804 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/kim/kim_selection_hints.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/include') diff --git a/src/include/kim/kim_selection_hints.h b/src/include/kim/kim_selection_hints.h index 6e7ee24c5..afeae635e 100644 --- a/src/include/kim/kim_selection_hints.h +++ b/src/include/kim/kim_selection_hints.h @@ -263,8 +263,10 @@ kim_error kim_selection_hints_set_hint (kim_selection_hints io_selection_hints, * \param in_selection_hints a selection hints object. * \param in_hint_key A string representing the type of hint to * obtain. - * \param out_hint_string A string representation of the hint + * \param out_hint_string On exit, a string representation of the hint * \a in_hint_key in \a in_selection_hints. + * If the hint is not set, sets the value pointed + * to by \a out_hint_string to NULL; * Must be freed with kim_string_free(). * \return On success, #KIM_NO_ERROR. On failure, an error code representing the failure. * \brief Get the string value of a hint used for identity selection. -- cgit