keyserv(1): drop useless comparison.

Comparing a character array against NULL serves no purpose. In any case
we are always asigning a value just before using the value so obviate
the comparison altogether.

Reviewed by:	ngie
Differential Revision:	https://reviews.freebsd.org/D6651

CID:	1008422
This commit is contained in:
Pedro F. Giffuni
2016-05-30 20:41:55 +00:00
parent 1b2b34583e
commit d5b9e63ca6
+5 -4
View File
@@ -180,12 +180,13 @@ void load_des(warn, libpath)
{
char dlpath[MAXPATHLEN];
if (libpath == NULL) {
snprintf(dlpath, sizeof(dlpath), "%s/%s", _PATH_USRLIB, LIBCRYPTO);
} else
if (libpath == NULL)
snprintf(dlpath, sizeof(dlpath), "%s/%s", _PATH_USRLIB,
LIBCRYPTO);
else
snprintf(dlpath, sizeof(dlpath), "%s", libpath);
if (dlpath != NULL && (dlhandle = dlopen(dlpath, 0444)) != NULL)
if ((dlhandle = dlopen(dlpath, 0444)) != NULL)
_my_crypt = (int (*)())dlsym(dlhandle, "_des_crypt");
if (_my_crypt == NULL) {