diff options
author | H. Peter Anvin <hpa@zytor.com> | 2005-12-29 20:17:24 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2005-12-29 20:17:24 -0800 |
commit | e4d17631688edf2e26c7488c9d36c0e849db813e (patch) | |
tree | 79a0301f9d4a8defc2f36e03327b68243726ca4d | |
parent | 935231582df16d2e73c9de98078d82d71cd392e2 (diff) | |
download | libucd-e4d17631688edf2e26c7488c9d36c0e849db813e.tar.gz |
Set errno to EINVAL on missing entry. It's sort of an odd error code,
but it's consistent with unicode_character_data() and it leaves ENOENT
free in case there is an implementation of the API in the future which
relies on external files.
-rw-r--r-- | nametoucs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nametoucs.c b/nametoucs.c index 12c96dd..4a9a414 100644 --- a/nametoucs.c +++ b/nametoucs.c @@ -47,6 +47,7 @@ unicode_character_lookup(const char *name) if ( !ucd->name || strcmp(name, ucd->name) ) { unicode_character_put(ucd); + errno = EINVAL; return NULL; } |