ICU-4703 Fail cleanly when detecting bad arguments.

X-SVN-Rev: 19483
This commit is contained in:
George Rhoten 2006-03-30 09:27:31 +00:00
parent 8a895cadee
commit f748c9d5e4

View File

@ -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++;