diff options
author | Paul Smith <psmith@gnu.org> | 2013-05-27 13:52:15 -0400 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2013-05-27 13:52:15 -0400 |
commit | d4043519f7f200ea5012094f11e157b8fc512642 (patch) | |
tree | 074c8edc36ad7ad46075d55e3c19b87172e76381 /main.c | |
parent | ef11217de78bdd4f5431830572aa90f0a5417368 (diff) | |
download | gunmake-d4043519f7f200ea5012094f11e157b8fc512642.tar.gz |
Cleanups.
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 21 |
1 files changed, 10 insertions, 11 deletions
@@ -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 |