diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-01-02 13:01:44 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-01-02 13:01:44 +0000 |
commit | 81c6415aa14d86630531d741a1c4c4f552cb84af (patch) | |
tree | da89efea4789e7c22a71d29fc832b099bd0d728d /source3/smbd/mangle_hash.c | |
parent | af3124067fcf73b5849d70469489654dce046617 (diff) | |
download | samba-81c6415aa14d86630531d741a1c4c4f552cb84af.tar.gz samba-81c6415aa14d86630531d741a1c4c4f552cb84af.tar.bz2 samba-81c6415aa14d86630531d741a1c4c4f552cb84af.zip |
Becouse these functions return a size_t, they can't return negitive numbers.
So a < 0 check is pointless, instead check against -1, which will be cast to
unsigned.
Andrew Bartlett
(This used to be commit c7e5797a95804d5779cdfc93795adcdf2fe82a59)
Diffstat (limited to 'source3/smbd/mangle_hash.c')
-rw-r--r-- | source3/smbd/mangle_hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/mangle_hash.c b/source3/smbd/mangle_hash.c index 929cb0e07f..ac9c13dcac 100644 --- a/source3/smbd/mangle_hash.c +++ b/source3/smbd/mangle_hash.c @@ -730,7 +730,7 @@ static void name_map(char *OutName, BOOL need83, BOOL cache83) DEBUG(5,("name_map( %s, need83 = %s, cache83 = %s)\n", OutName, need83 ? "True" : "False", cache83 ? "True" : "False")); - if (push_ucs2_allocate(&OutName_ucs2, OutName) < 0) { + if (push_ucs2_allocate(&OutName_ucs2, OutName) == -1 ) { DEBUG(0, ("push_ucs2_allocate failed!\n")); return; } |