diff options
author | Roy Marples <roy@marples.name> | 2007-04-19 14:54:35 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-04-19 14:54:35 +0000 |
commit | 2569e85579bc5c7d676865b386398119f04a5912 (patch) | |
tree | 41724e54856c9323b53428e49258f56f1102c0ed /src/librc-misc.c | |
parent | 3ed60d52026c484dce2d1856ea3bb893b8ee7d92 (diff) |
strdup -> rc_xstrdup
Diffstat (limited to 'src/librc-misc.c')
-rw-r--r-- | src/librc-misc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librc-misc.c b/src/librc-misc.c index b728e8c9..62000fa3 100644 --- a/src/librc-misc.c +++ b/src/librc-misc.c @@ -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, ":"))) |