diff options
author | Roy Marples <roy@marples.name> | 2007-10-08 11:16:22 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2007-10-08 11:16:22 +0000 |
commit | cd4bce7e8da691b8be0a88292eee13852b826b7e (patch) | |
tree | 26ab1fb49a790b8855b0dc60781551896c065931 /src/librc-misc.c | |
parent | a89ceb7e2c994e2a3907d9c906d99021a6e15788 (diff) |
Wups, should be 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 ba0122da..6d90b02c 100644 --- a/src/librc-misc.c +++ b/src/librc-misc.c @@ -120,7 +120,7 @@ char **rc_config_load (const char *file) if (! token) continue; - entry = strdup (token); + entry = xstrdup (token); /* Preserve shell coloring */ if (*p == '$') @@ -144,7 +144,7 @@ char **rc_config_load (const char *file) /* In shells the last item takes precedence, so we need to remove any prior values we may already have */ STRLIST_FOREACH (list, line, i) { - char *tmp = strdup (line); + char *tmp = xstrdup (line); linep = tmp; linetok = strsep (&linep, "="); if (strcmp (linetok, entry) == 0) { |