From d4043519f7f200ea5012094f11e157b8fc512642 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Mon, 27 May 2013 13:52:15 -0400 Subject: Cleanups. --- README.git | 2 +- main.c | 21 ++++++++++----------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/README.git b/README.git index 3f12d02..8af5815 100644 --- a/README.git +++ b/README.git @@ -214,7 +214,7 @@ For both final releases and pre-releases, send an email with the URL of the package to the GNU translation robot to allow the translators to work on it: - + Where to Announce diff --git a/main.c b/main.c index 16ed318..3da595f 100644 --- a/main.c +++ b/main.c @@ -1340,25 +1340,24 @@ main (int argc, char **argv, char **envp) env = Lock ("ENV:", ACCESS_READ); if (env) - { + { old = CurrentDir (DupLock (env)); Examine (env, &fib); while (ExNext (env, &fib)) - { + { if (fib.fib_DirEntryType < 0) /* File */ - { + { /* Define an empty variable. It will be filled in - variable_lookup(). Makes startup quite a bit - faster. */ - define_variable (fib.fib_FileName, - strlen (fib.fib_FileName), - "", o_env, 1)->export = v_export; - } - } + variable_lookup(). Makes startup quite a bit faster. */ + define_variable (fib.fib_FileName, + strlen (fib.fib_FileName), + "", o_env, 1)->export = v_export; + } + } UnLock (env); UnLock (CurrentDir (old)); - } + } } #endif -- cgit v1.2.3