Commit 13e39360 authored by Richard Levitte's avatar Richard Levitte
Browse files

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.
parent 052ec899
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
	}