Typo in testing for non-NULL.

Fixes https://github.com/kristapsdz/kcgi/issues/85
This commit is contained in:
kristapsdz committed 2021-05-08 14:30:20 +00:00
1 parent 1f494347bf
commit 9a51677e8a
1 file changed
+2 -2
+2 -2
View File
@@ -740,11 +740,11 @@ int
khttp_fcgi_test(void)
{
socklen_t len = 0;
const char *cp, *ercp;
const char *cp, *ercp = NULL;
if ((cp = getenv("FCGI_LISTENSOCK_DESCRIPTORS")) != NULL) {
strtonum(cp, 0, INT_MAX, &ercp);
if (ercp != NULL)
if (ercp == NULL)
return 1;
}