FIxed strlen test.

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

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);

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);