diff options
author | 2007-09-09 08:24:53 +1000 | |
---|---|---|
committer | 2007-09-09 08:24:53 +1000 | |
commit | 151943f89e36103dd3802764a2fa895eb7bf5c77 (patch) | |
tree | d511d18275742a3bd2149ae23d6232331c4b1c67 /main.c | |
parent | ad02bb9b4871bc053e36a01d603a592984ae1364 (diff) |
Indentation, typo and formating fixes. Very minor patch.
darcs-hash:20070908222453-75c98-2236d962f0c9016820063e871fbbeaa42f36ef22.gz
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 20 |
1 files changed, 12 insertions, 8 deletions
@@ -368,8 +368,12 @@ int main( int argc, char **argv ) rel_filename = str2wcs( file ); abs_filename = wrealpath( rel_filename, 0 ); + if( !abs_filename ) + { abs_filename = wcsdup(rel_filename); + } + reader_push_current_filename( intern( abs_filename ) ); free( rel_filename ); free( abs_filename ); @@ -379,16 +383,16 @@ int main( int argc, char **argv ) if( res ) { debug( 1, - _(L"Error while reading file %ls\n"), - reader_current_filename()?reader_current_filename(): _(L"Standard input") ); + _(L"Error while reading file %ls\n"), + reader_current_filename()?reader_current_filename(): _(L"Standard input") ); } reader_pop_current_filename(); } } } - + proc_fire_event( L"PROCESS_EXIT", EVENT_EXIT, getpid(), res ); - + history_destroy(); proc_destroy(); builtin_destroy(); @@ -397,12 +401,12 @@ int main( int argc, char **argv ) parser_destroy(); wutil_destroy(); event_destroy(); - + halloc_util_destroy(); - + env_destroy(); - + intern_free_all(); - + return res?STATUS_UNKNOWN_COMMAND:proc_get_last_status(); } |