aboutsummaryrefslogtreecommitdiff
path: root/src/librc-misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/librc-misc.c')
-rw-r--r--src/librc-misc.c4
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) {