OpenSolaris

Printable Version Enter a New Search
Bug ID 6207957
Synopsis uu_list_find() leaves error unset when successfully returning NULL
State 1-Dispatched (Default State)
Category:Subcategory library:libuutil
Keywords oss-bite-size
Sponsor
Submitter
Reported Against
Duplicate Of
Introduced In
Commit to Fix
Fixed In
Release Fixed
Related Bugs
Submit Date 14-December-2004
Last Update Date 9-August-2008
Description
bustos 2004-12-13

See comments.

 xxxxx@xxxxx.com 2004-12-14 00:25:00 GMT
[dp: bug is marked bite-size but description was opaque.  relocated comments]

bustos 2004-12-13

If uu_list_find() is called on a list which doesn't have a comparison
function, then it sets the uu_error() to UU_ERROR_NOT_SUPPORTED and
returns NULL.  NULL is also the return value for when uu_list_find()
completes successfully, but didn't find anything.  If the uu_error()
happened to be UU_ERROR_NOT_SUPPORTED before uu_list_find() was
called, then there's no way for the caller to know whether the function
completed successfully.

 xxxxx@xxxxx.com 2004-12-14 00:25:00 GMT
Work Around
N/A
Comments
N/A