mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 02:31:18 -03:00
Improved error checking in main()
darcs-hash:20060203003855-ac50b-d4f5c4e183dc1b38bbfe15bf44be746bb188ef10.gz
This commit is contained in:
4
main.c
4
main.c
@@ -271,7 +271,9 @@ int main( int argc, char **argv )
|
||||
}
|
||||
|
||||
rel_filename = str2wcs( file );
|
||||
abs_filename = wrealpath( rel_filename, 0 );
|
||||
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 );
|
||||
|
||||
Reference in New Issue
Block a user