ICU-4703 Fail cleanly when detecting bad arguments.
X-SVN-Rev: 19483
This commit is contained in:
parent
8a895cadee
commit
f748c9d5e4
@ -372,8 +372,10 @@ getTest(const TestNode* root, const char* name)
|
||||
const TestNode* curNode;
|
||||
int nameLen; /* length of current 'name' */
|
||||
|
||||
if (root == NULL)
|
||||
if (root == NULL) {
|
||||
log_err("TEST CAN'T BE FOUND!\n");
|
||||
return NULL;
|
||||
}
|
||||
/* remove leading slash */
|
||||
if ( *name == TEST_SEPARATOR )
|
||||
name++;
|
||||
|
Loading…
Reference in New Issue
Block a user