FIxed strlen test.

This commit is contained in:
Janet B. Anderson committed 1996-06-19 14:39:54 +00:00
1 parent d7f50f503e
commit a8f0ec2338
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -138,7 +138,7 @@ char *pBuf; /* I pointer to parameter buffer */
if (pEnv == NULL)
pEnv = pParam->dflt;
if (strlen(pEnv) <= 0)
if (strlen(pEnv) == 0)
return NULL;
if ((i = strlen(pEnv)) < bufDim)
strcpy(pBuf, pEnv);
+1 -1
View File
@@ -138,7 +138,7 @@ char *pBuf; /* I pointer to parameter buffer */
if (pEnv == NULL)
pEnv = pParam->dflt;
if (strlen(pEnv) <= 0)
if (strlen(pEnv) == 0)
return NULL;
if ((i = strlen(pEnv)) < bufDim)
strcpy(pBuf, pEnv);