aboutsummaryrefslogtreecommitdiff
path: root/src/librc
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-09-18 19:46:10 +0000
committerRoy Marples <roy@marples.name>2008-09-18 19:46:10 +0000
commite368a4b4f89648713a5ff587b4c2eef3f32df05b (patch)
treec90e0fb40036c24c54c619046397406fc7dfbf8e /src/librc
parent354fb96ee95ca30412bf53211aca7b9bd62fb771 (diff)
Add missing profile bits to env, #72.
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;