diff options
author | Richard Levitte <levitte@openssl.org> | 2005-06-09 17:28:53 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2005-06-09 17:28:53 +0000 |
commit | 13e393607b23fd47e4d2dbba2188356062fd2a27 (patch) | |
tree | f727ef8b07de4c2b7dcf00db96c09bdb79148ce9 /crypto | |
parent | 052ec899279e36359bb0f554732cec5551cf30ea (diff) |
When the return type of the function is int, it's better to return an
in than NULL, especially when an error is signalled with a negative
value.
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/dso/dso_lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/dso/dso_lib.c b/crypto/dso/dso_lib.c index 0869a646f6..12ad097a28 100644 --- a/crypto/dso/dso_lib.c +++ b/crypto/dso/dso_lib.c @@ -472,7 +472,7 @@ int DSO_pathbyaddr(void *addr,char *path,int sz) if (meth->pathbyaddr == NULL) { DSOerr(DSO_F_PATHBYADDR,DSO_R_UNSUPPORTED); - return(NULL); + return -1; } return (*meth->pathbyaddr)(addr,path,sz); } |