/[ascend]/trunk/base/generic/utilities/ascEnvVar.c
ViewVC logotype

Diff of /trunk/base/generic/utilities/ascEnvVar.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 588 by johnpye, Thu May 11 00:47:54 2006 UTC revision 589 by johnpye, Thu May 11 03:10:43 2006 UTC
# Line 128  int CmpEV(struct asc_env_t *ev1, struct Line 128  int CmpEV(struct asc_env_t *ev1, struct
128   * returns the envvar with the name specified.   * returns the envvar with the name specified.
129   */   */
130  static  static
131  struct asc_env_t *FindEnvVar(char *name)  struct asc_env_t *FindEnvVar(const char *name)
132  {  {
133    unsigned long pos;    unsigned long pos;
134    struct asc_env_t dummy;    struct asc_env_t dummy;
# Line 391  int Asc_ImportPathList(CONST char *envva Line 391  int Asc_ImportPathList(CONST char *envva
391      return 1;      return 1;
392    }    }
393    rhs = getenv(envvar);    rhs = getenv(envvar);
394    if (( rhs == NULL ) || ( strlen(rhs) == '\0' )) {    if (( rhs == NULL ) || ( strlen(rhs) == 0 )) {
395      return 1;      return 1;
396    }    }
397    return Asc_SetPathList(envvar, rhs);    return Asc_SetPathList(envvar, rhs);

Legend:
Removed from v.588  
changed lines
  Added in v.589

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22