aboutsummaryrefslogtreecommitdiff
path: root/src/librc
diff options
context:
space:
mode:
Diffstat (limited to 'src/librc')
-rw-r--r--src/librc/librc-misc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/librc/librc-misc.c b/src/librc/librc-misc.c
index 5cde2028..b6157009 100644
--- a/src/librc/librc-misc.c
+++ b/src/librc/librc-misc.c
@@ -138,10 +138,14 @@ RC_STRINGLIST *rc_config_load(const char *file)
TAILQ_FOREACH(line, list, entries) {
/* Get entry */
p = line->value;
+ if (! p)
+ continue;
+ if (strncmp(p, "export ", 7) == 0)
+ p += 7;
if (! (token = strsep(&p, "=")))
continue;
- entry = xstrdup (token);
+ entry = xstrdup(token);
/* Preserve shell coloring */
if (*p == '$')
token = line->value;