strdup -> rc_xstrdup

This commit is contained in:
Roy Marples
2007-04-19 14:54:35 +00:00
parent 3ed60d5202
commit 2569e85579
9 changed files with 27 additions and 30 deletions

View File

@ -59,7 +59,7 @@ char *rc_xstrdup (const char *str)
if (! str)
return (NULL);
value = strdup (str);
value = rc_xstrdup (str);
if (value)
return (value);
@ -490,7 +490,7 @@ char **rc_filter_env (void)
/* Now go through the env var and only add bits not in our PREFIX */
sep = env_var;
while ((token = strsep (&sep, ":"))) {
char *np = strdup (PATH_PREFIX);
char *np = rc_xstrdup (PATH_PREFIX);
char *npp = np;
char *tok = NULL;
while ((tok = strsep (&npp, ":")))