mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Improved error checking in main()
darcs-hash:20060203003855-ac50b-d4f5c4e183dc1b38bbfe15bf44be746bb188ef10.gz
This commit is contained in:
parent
c3a1473419
commit
807a0b8dbd
1 changed files with 3 additions and 1 deletions
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 );
|
||||
|
|
Loading…
Reference in a new issue