Project

General

Profile

Actions

Bug #89

closed

uu_list_find() leaves error unset when successfully returning NULL

Added by John Doe almost 12 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2010-08-23
Due date:
% Done:

90%

Estimated time:
Difficulty:
Tags:
Gerrit CR:

Description

bustos 2004-12-13

See comments.

 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.

 2004-12-14 00:25:00 GMT

Files

test.c (1.74 KB) test.c Jason King, 2011-01-20 04:34 PM
Actions

Also available in: Atom PDF