From e368a4b4f89648713a5ff587b4c2eef3f32df05b Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Thu, 18 Sep 2008 19:46:10 +0000 Subject: Add missing profile bits to env, #72. --- src/librc/librc-misc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/librc/librc-misc.c') 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; -- cgit v1.2.3