/[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 707 by johnpye, Thu May 11 03:10:43 2006 UTC revision 708 by johnpye, Tue Jun 27 07:34:31 2006 UTC
# Line 236  int Asc_SetPathList(CONST char *envvar, Line 236  int Asc_SetPathList(CONST char *envvar,
236    if (spcseen) {    if (spcseen) {
237      return 1;      return 1;
238    }    }
239    keepname = (char *)ascmalloc(c+1);    keepname = ASC_NEW_ARRAY(char,c+1);
240    if (keepname == NULL) {    if (keepname == NULL) {
241      return 1;      return 1;
242    }    }
# Line 337  int Asc_PutEnv(CONST char *envstring) Line 337  int Asc_PutEnv(CONST char *envstring)
337    if (spcseen) {    if (spcseen) {
338      return 1;      return 1;
339    }    }
340    keepname = (char *)ascmalloc(c+1);    keepname = ASC_NEW_ARRAY(char,c+1);
341    if (keepname == NULL) {    if (keepname == NULL) {
342      return 1;      return 1;
343    }    }
# Line 507  char *Asc_GetEnv(const char *envvar) Line 507  char *Asc_GetEnv(const char *envvar)
507    for (c = 1; c <= llen; c++) {    for (c = 1; c <= llen; c++) {
508      slen += (strlen((char *)gl_fetch(ev->data,(unsigned long)c)) +1 );      slen += (strlen((char *)gl_fetch(ev->data,(unsigned long)c)) +1 );
509    }    }
510    result = (char *)ascmalloc(slen+1);    result = ASC_NEW_ARRAY(char,slen+1);
511    if (result == NULL) {    if (result == NULL) {
512      return NULL;      return NULL;
513    }    }

Legend:
Removed from v.707  
changed lines
  Added in v.708

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